File tree 1 file changed +7
-13
lines changed
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 30
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
31
32
32
push_to_registry :
33
- name : Push image to ECR
33
+ name : Push image to DockerHub
34
34
runs-on : ubuntu-latest
35
35
needs :
36
36
- release
@@ -40,23 +40,17 @@ jobs:
40
40
with :
41
41
fetch-depth : 0
42
42
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
45
45
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
+
55
49
- name : Extract metadata (tags, labels) for Docker
56
50
id : meta
57
51
uses : docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # pin@v5.6.1
58
52
with :
59
- images : public.ecr.aws/twisto /actions-techdocs
53
+ images : twistopayments /actions-techdocs
60
54
tags : |
61
55
type=raw,value=latest
62
56
type=raw,value=${{ needs.release.outputs.master_tag_name }}
You can’t perform that action at this time.
0 commit comments