mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Build and push to Artifact Registry in parallel with gcr.io so we can verify the workflow
Google Container Registry is getting deprecated in favor of Artifact Registry so we need to migrate the contains over. This CL builds and pushes to Artifact Registry whenever something is pushed and built to the Container Registry. This will be used to verify that the Artifact Registry works.
This commit is contained in:
parent
578302f419
commit
740e70cbd5
10
.github/workflows/sigbuild-docker-presubmit.yml
vendored
10
.github/workflows/sigbuild-docker-presubmit.yml
vendored
|
|
@ -56,6 +56,15 @@ jobs:
|
||||||
registry: gcr.io
|
registry: gcr.io
|
||||||
username: _json_key
|
username: _json_key
|
||||||
password: ${{ secrets.GCP_CREDS }}
|
password: ${{ secrets.GCP_CREDS }}
|
||||||
|
-
|
||||||
|
name: Login to AR
|
||||||
|
# Once this is verified, change the label's name. For now, we will piggyback on gcr.io actions.
|
||||||
|
if: contains(github.event.pull_request.labels.*.name, 'build and push to gcr.io for staging')
|
||||||
|
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
|
||||||
|
with:
|
||||||
|
registry: us-central1-docker.pkg.dev
|
||||||
|
username: _json_key
|
||||||
|
password: ${{ secrets.GCP_CREDS }}
|
||||||
-
|
-
|
||||||
name: Grab the date to do cache busting (assumes same day OK to keep)
|
name: Grab the date to do cache busting (assumes same day OK to keep)
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -74,6 +83,7 @@ jobs:
|
||||||
CACHEBUSTER=${{ steps.date.outputs.DATE }}
|
CACHEBUSTER=${{ steps.date.outputs.DATE }}
|
||||||
tags: |
|
tags: |
|
||||||
gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
|
gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
|
||||||
|
us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/build:${{ github.event.number }}-${{ matrix.python-version }}
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=registry,ref=tensorflow/build:latest-${{ matrix.python-version }}
|
type=registry,ref=tensorflow/build:latest-${{ matrix.python-version }}
|
||||||
type=registry,ref=gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
|
type=registry,ref=gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user