15
15
- name : Set up Docker Buildx
16
16
uses : docker/setup-buildx-action@v2
17
17
- 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
19
19
- name : Docker Login
20
20
# You may pin to the exact commit or the version.
21
21
# uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
@@ -25,32 +25,20 @@ jobs:
25
25
username : ${{ secrets.DOCKER_USERNAME }} # optional
26
26
# Password or personal access token used to log against the Docker registry
27
27
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
-
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
38
28
- uses : kitabisa/docker-slim-action@v1
39
29
env :
40
30
DSLIM_HTTP_PROBE : false
41
31
with :
42
32
target : penndu/nsfw-api:latest
43
- tag : " slim"
33
+ tag : " penndu/nsfw-api: slim"
44
34
- name : Build and push Docker images
45
35
# You may pin to the exact commit or the version.
46
36
# uses: docker/build-push-action@c84f38281176d4c9cdb1626ffafcd6b3911b5d94
47
37
48
38
with :
49
- # List of metadata for an image
50
- labels : ${{ steps.meta.outputs.labels }} # optional
51
39
# List of target platforms for build
52
40
platforms : linux/amd64,linux/arm64,linux/arm # optional
53
41
# Push is a shorthand for --output=type=registry
54
42
push : true # optional, default is false
55
43
# List of tags
56
- tags : slim # optional
44
+ tags : penndu/nsfw-api: slim # optional
0 commit comments