Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnikter committed Feb 5, 2025
1 parent a8e9e0e commit b557773
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/upload_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
type: string

env:
AWS_REGION: eu-west-1 # to retrieve the SDK from AWS CodeArtifact
GCP_ACR_REGISTRY: ${{ vars.GCP_ACR_REGISTRY }}
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
GCP_ACR_REPOSITORY: ${{ vars.GCP_ACR_REPOSITORY }}
Expand Down Expand Up @@ -41,6 +42,13 @@ jobs:
uses: google-github-actions/setup-gcloud@v2
with:
version: '>= 363.0.0'

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Login to GCP Artifact registry
run: gcloud auth configure-docker ${{ env.GCP_ACR_REGISTRY }}
Expand Down

0 comments on commit b557773

Please sign in to comment.