Skip to content

Commit

Permalink
ci: add push image to gar (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcobarreto authored Nov 22, 2022
1 parent 20078e6 commit 9f6bfd7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions build-push-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,28 @@ runs:
id: meta
uses: docker/[email protected]
with:
images: gcr.io/toptal-hub/${{ inputs.image-name }}
images: |
gcr.io/toptal-hub/${{ inputs.image-name }}
us-central1-docker.pkg.dev/toptal-hub/containers/${{ inputs.image-name }}
tags: |
type=raw,enable=true,priority=200,prefix=,suffix=,value=${{ inputs.sha }}
flavor: |
latest=${{ steps.meta-latest.outputs.latest }}
- name: Login to GCloud Registry
- name: Login to Google Container Registry - GCR
uses: docker/login-action@v2
with:
registry: gcr.io
username: _json_key
password: ${{ env.GCR_ACCOUNT_KEY }}

- name: Login to Google Artifact Registry - GAR
uses: docker/login-action@v2
with:
registry: us-central1-docker.pkg.dev
username: _json_key
password: ${{ env.GCR_ACCOUNT_KEY }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit 9f6bfd7

Please sign in to comment.