From 1a17c1dd27b29ea3157e15700f05045c170874bb Mon Sep 17 00:00:00 2001 From: Ramkumar Vengadakrishnan Date: Thu, 6 Apr 2023 13:58:05 -0500 Subject: [PATCH] feat: Push images to gcr - Update docker/login-action to v2 Authored-by: Ramkumar Vengadakrishnan [#184667616] - Move Dockerhub images to GCR --- .github/workflows/ci.yml | 11 ++++++++++- .goreleaser.yml | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71a68767..fa3be8c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,11 +37,20 @@ jobs: - if: startsWith(github.ref, 'refs/tags/') name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - + if: startsWith(github.ref, 'refs/tags/') + name: Login to GCR + uses: docker/login-action@v2 + with: + registry: gcr.io + username: _json_key + password: ${{ secrets.TAS_PPE_GCR_SERVICE_JSON_KEY }} + - if: startsWith(github.ref, 'refs/tags/') name: Run GoReleaser diff --git a/.goreleaser.yml b/.goreleaser.yml index bf7b2161..c9ff3e35 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -43,6 +43,8 @@ dockers: - image_templates: - "pivotalcfreleng/winfs-injector:latest" - "pivotalcfreleng/winfs-injector:{{ .Tag }}" + - "gcr.io/tas-ppe/pivotalcfreleng/winfs-injector:latest" + - "gcr.io/tas-ppe/pivotalcfreleng/winfs-injector:{{ .Tag }}" skip_push: "false" @@ -57,4 +59,4 @@ checksum: snapshot: name_template: "{{ .Tag }}-next" changelog: - skip: true \ No newline at end of file + skip: true