Skip to content

Commit

Permalink
chore: visibility of image versions (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen authored May 29, 2024
1 parent d84aae3 commit ce8a986
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/deploy_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:

steps:
- name: checkout the source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: login to ghcr
id: ghcr
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
Expand All @@ -44,15 +44,7 @@ jobs:
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.TAG }}

- name: tag version / push docker image into ghcr
id: build-and-push-ref
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}

- name: slack notify
uses: 8398a7/action-slack@v3
Expand All @@ -78,7 +70,7 @@ jobs:

steps:
- name: checkout ecs repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: sygmaprotocol/devops
token: ${{ secrets.GHCR_TOKEN }}
Expand All @@ -94,9 +86,10 @@ jobs:
awsAccountId=${{ env.AWS_TESTNET }}
awsRegion=${{ secrets.AWS_REGION }}
awsEfs=${{ secrets.TESTNET_EFS_1 }}
imageTag=${{ github.ref_name }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.AWS_TESTNET }}:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
aws-region: ${{ secrets.AWS_REGION }}
Expand Down Expand Up @@ -136,7 +129,7 @@ jobs:

steps:
- name: checkout ecs repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: sygmaprotocol/devops
token: ${{ secrets.GHCR_TOKEN }}
Expand All @@ -152,9 +145,10 @@ jobs:
awsAccountId=${{ env.AWS_TESTNET }}
awsRegion=${{ secrets.AWS_REGION_3 }}
awsEfs=${{ secrets.TESTNET_EFS_3 }}
imageTag=${{ github.ref_name }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ env.AWS_TESTNET }}:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
aws-region: ${{ secrets.AWS_REGION_3 }}
Expand Down

0 comments on commit ce8a986

Please sign in to comment.