Skip to content

Commit 363f602

Browse files
authored
Update dockerimage.yml
1 parent 00faf4c commit 363f602

File tree

1 file changed

+5
-35
lines changed

1 file changed

+5
-35
lines changed

.github/workflows/dockerimage.yml

+5-35
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image CI (Manual Build Only)
1+
name: Docker Build Only
22

33
on:
44
workflow_dispatch:
@@ -7,38 +7,8 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
10+
- name: Checkout code
11+
uses: actions/checkout@v3
1212

13-
- name: Docker meta
14-
id: meta
15-
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175
16-
with:
17-
images: |
18-
netflixoss/metaflow_metadata_service
19-
tags: |
20-
type=semver,pattern={{raw}}
21-
type=sha
22-
type=raw,value=latest
23-
24-
# Optionally, you can remove the Docker Hub login step since we are not pushing.
25-
#- name: Login to Docker Hub
26-
# uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
27-
# with:
28-
# username: ${{ secrets.DOCKER_USERNAME_NETFLIX_OSS }}
29-
# password: ${{ secrets.DOCKER_AUTH_TOKEN_NETFLIX_OSS }}
30-
31-
- name: Build (No Push)
32-
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
33-
with:
34-
context: .
35-
push: false
36-
tags: ${{ steps.meta.outputs.tags }}
37-
labels: ${{ steps.meta.outputs.labels }}
38-
39-
40-
41-
context: .
42-
push: true
43-
tags: ${{ steps.meta.outputs.tags }}
44-
labels: ${{ steps.meta.outputs.labels }}
13+
- name: Build Docker image
14+
run: docker build . -t test-image:latest

0 commit comments

Comments
 (0)