Skip to content

Commit 4eedf5c

Browse files
authored
Update dome.yml
1 parent 38563ed commit 4eedf5c

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/dome.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Docker Buildx
1616
uses: docker/setup-buildx-action@v2
1717
- name: Build the Docker image
18-
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
18+
run: docker build . --file Dockerfile --tag penndu/nsfw-api:latest
1919
- name: Docker Login
2020
# You may pin to the exact commit or the version.
2121
# uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
@@ -25,32 +25,20 @@ jobs:
2525
username: ${{ secrets.DOCKER_USERNAME }} # optional
2626
# Password or personal access token used to log against the Docker registry
2727
password: ${{ secrets.DOCKER_PASSWORD }} # optional
28-
- name: Docker Metadata action
29-
# You may pin to the exact commit or the version.
30-
# uses: docker/metadata-action@69f6fc9d46f2f8bf0d5491e4aabe0bb8c6a4678a
31-
id: meta
32-
uses: docker/[email protected]
33-
with:
34-
# List of Docker images to use as base name for tags
35-
images: penndu/nsfw-api
36-
# List of tags as key-value pair attributes
37-
tags: latest # optional
3828
- uses: kitabisa/docker-slim-action@v1
3929
env:
4030
DSLIM_HTTP_PROBE: false
4131
with:
4232
target: penndu/nsfw-api:latest
43-
tag: "slim"
33+
tag: "penndu/nsfw-api:slim"
4434
- name: Build and push Docker images
4535
# You may pin to the exact commit or the version.
4636
# uses: docker/build-push-action@c84f38281176d4c9cdb1626ffafcd6b3911b5d94
4737
uses: docker/[email protected]
4838
with:
49-
# List of metadata for an image
50-
labels: ${{ steps.meta.outputs.labels }} # optional
5139
# List of target platforms for build
5240
platforms: linux/amd64,linux/arm64,linux/arm # optional
5341
# Push is a shorthand for --output=type=registry
5442
push: true # optional, default is false
5543
# List of tags
56-
tags: slim # optional
44+
tags: penndu/nsfw-api:slim # optional

0 commit comments

Comments
 (0)