Skip to content
Snippets Groups Projects
Commit 2ff44498 authored by Austin Anderson's avatar Austin Anderson
Browse files

Commit missed files

parent 6b8c791c
No related branches found
No related tags found
No related merge requests found
name: Upload requested containers to gcr.io
name: Docker presubmit & push to gcr
on:
pull_request:
types: [labeled]
types: [labeled, opened, synchronize, reopened]
paths:
- '.github/workflows/docker-gcr.yml'
- 'tf_sig_build_dockerfiles/**'
......@@ -10,7 +10,6 @@ on:
jobs:
docker:
if: ${{ github.event.label.name == 'build and push to gcr.io for staging' }}
runs-on: ubuntu-latest
strategy:
matrix:
......@@ -19,14 +18,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Clear the build-and-push label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: build and push to gcr.io for staging
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
......@@ -42,7 +33,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
push: contains(github.event.pull_request.labels.*.name, 'build and push to gcr.io for staging')
context: ./tf_sig_build_dockerfiles
target: devel
build-args: |
......@@ -53,12 +44,10 @@ jobs:
type=registry,ref=tensorflow/build:latest-${{ matrix.python-version }}
type=registry,ref=gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
cache-to: type=inline
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
-
name: Add a comment with the pushed containers
uses: mshick/add-pr-comment@v1
if: contains(github.event.pull_request.labels.*.name, 'build and push to gcr.io for staging')
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message: |
......@@ -68,5 +57,7 @@ jobs:
- `gcr.io/tensorflow-sigs/build:${{ github.event.number }}-python3.8`
- `gcr.io/tensorflow-sigs/build:${{ github.event.number }}-python3.7`
Re-apply the `build and push to gcr.io for staging` label to
rebuild and push again. This comment will only be posted once.
Re-apply the `build and push to gcr.io for staging` label to rebuild and push again. This comment will only be posted once.
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
......@@ -20,9 +20,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
......@@ -60,6 +57,8 @@ jobs:
tags: |
tensorflow/build:latest-${{ matrix.python-version }}
tensorflow/build:${{ steps.tf-version.outputs.TF_VERSION }}-${{ matrix.python-version }}
gcr.io/tensorflow-sigs/build:latest-${{ matrix.python-version }}
gcr.io/tensorflow-sigs/build:${{ steps.tf-version.outputs.TF_VERSION }}-${{ matrix.python-version }}
cache-from: type=registry,ref=tensorflow/build:latest-${{ matrix.python-version }}
cache-to: type=inline
-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment