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