Skip to content

Commit

Permalink
Merge pull request #88 from ZeroGachis/feature/pla-844
Browse files Browse the repository at this point in the history
feat: add capability to build from private ECR base image
  • Loading branch information
nicolasbriere1 authored Mar 18, 2024
2 parents 70fa7fd + 48c5d9e commit e633d6a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,23 @@ jobs:
id: aws
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
aws-region: eu-west-3
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/github_oidc_readonly
output-credentials: true

- name: Login to Github Packages
if: contains(inputs.regitry_url,'ghcr')
uses: docker/login-action@v3
with:
registry: ${{ inputs.regitry_url }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
registries: "007065811408"

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit e633d6a

Please sign in to comment.