Skip to content

Commit 98b69dd

Browse files
authored
Update dockerimage.yml
1 parent fbcc7d0 commit 98b69dd

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

.github/workflows/dockerimage.yml

+19-21
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
1-
name: Docker Image CI
2-
3-
on:
4-
release:
5-
branches: [ master ]
6-
71
jobs:
82
build:
93
runs-on: ubuntu-latest
104
steps:
11-
-
12-
name: Checkout
13-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
14-
-
15-
name: Docker meta
5+
- name: Checkout
6+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
7+
8+
- name: Docker meta
169
id: meta
17-
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4.6.0
10+
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175
1811
with:
1912
images: |
2013
netflixoss/metaflow_metadata_service
2114
tags: |
2215
type=semver,pattern={{raw}}
2316
type=sha
2417
type=raw,value=latest
25-
-
26-
name: Login to Docker Hub
27-
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
28-
with:
29-
username: ${{ secrets.DOCKER_USERNAME_NETFLIX_OSS }}
30-
password: ${{ secrets.DOCKER_AUTH_TOKEN_NETFLIX_OSS }}
31-
-
32-
name: Build and push # We have a single-platform build, so use of setup-buildx-action is currently omitted.
33-
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
18+
19+
#- name: Login to Docker Hub
20+
# uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
21+
# with:
22+
# username: ${{ secrets.DOCKER_USERNAME_NETFLIX_OSS }}
23+
# password: ${{ secrets.DOCKER_AUTH_TOKEN_NETFLIX_OSS }}
24+
25+
- name: Build (No Push)
26+
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
3427
with:
28+
context: .
29+
push: false
30+
tags: ${{ steps.meta.outputs.tags }}
31+
labels: ${{ steps.meta.outputs.labels }}
32+
3533
context: .
3634
push: true
3735
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)