Skip to content

Commit 21164b2

Browse files
Merge pull request #6 from TwistoPayments/DO-28
Push image to DockerHUB
2 parents cbfe2ac + 24af0b6 commit 21164b2

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

Diff for: .github/workflows/release.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

3232
push_to_registry:
33-
name: Push image to ECR
33+
name: Push image to DockerHub
3434
runs-on: ubuntu-latest
3535
needs:
3636
- release
@@ -40,23 +40,17 @@ jobs:
4040
with:
4141
fetch-depth: 0
4242

43-
- name: Configure AWS credentials
44-
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # pin@v4.0.1
43+
- name: Log in to the Container registry
44+
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # pin@v3.0.0
4545
with:
46-
role-to-assume: 'arn:aws:iam::${{ vars.AWS_CICD_ACCOUNT }}:role/ecr-cicd-github'
47-
aws-region: 'us-east-1'
48-
49-
- name: Login to Amazon ECR
50-
id: login-ecr
51-
uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # pin@v2.0.1
52-
with:
53-
registry-type: public
54-
46+
username: ${{ secrets.DOCKERHUB_USERNAME }}
47+
password: ${{ secrets.DOCKERHUB_TOKEN }}
48+
5549
- name: Extract metadata (tags, labels) for Docker
5650
id: meta
5751
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # pin@v5.6.1
5852
with:
59-
images: public.ecr.aws/twisto/actions-techdocs
53+
images: twistopayments/actions-techdocs
6054
tags: |
6155
type=raw,value=latest
6256
type=raw,value=${{ needs.release.outputs.master_tag_name }}

0 commit comments

Comments
 (0)