Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tf-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benedikt Wildenhain
tf-build
Commits
2ff44498
Commit
2ff44498
authored
Dec 3, 2021
by
Austin Anderson
Browse files
Options
Downloads
Patches
Plain Diff
Commit missed files
parent
6b8c791c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/docker-presubmit.yml
+8
-17
8 additions, 17 deletions
.github/workflows/docker-presubmit.yml
.github/workflows/docker.yml
+2
-3
2 additions, 3 deletions
.github/workflows/docker.yml
with
10 additions
and
20 deletions
.github/workflows/docker-presubmit.yml
+
8
−
17
View file @
2ff44498
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 }}
This diff is collapsed.
Click to expand it.
.github/workflows/docker.yml
+
2
−
3
View file @
2ff44498
...
@@ -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
-
-
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment