Skip to content

Commit

Permalink
login to github packages, use secret for arn
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaGuerra committed Nov 24, 2021
1 parent 11d8b8c commit 77db85b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release-final.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish final docker images
uses: akhilerm/[email protected]
with:
Expand Down Expand Up @@ -77,7 +84,7 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@fcd8bb1e0a3c9d2a0687615ee31d34d8aea18a96
with:
role-to-assume: arn:aws:iam::368293260341:role/RoleTestForGithubActions
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: us-east-1

- name: Release RPMs
Expand Down Expand Up @@ -128,7 +135,7 @@ jobs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@fcd8bb1e0a3c9d2a0687615ee31d34d8aea18a96
with:
role-to-assume: arn:aws:iam::368293260341:role/RoleTestForGithubActions
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: us-east-1

- name: Import private key
Expand Down

0 comments on commit 77db85b

Please sign in to comment.