Skip to content

Commit

Permalink
Update dome.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
penndu authored Sep 5, 2024
1 parent 38563ed commit 4eedf5c
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/dome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile --tag penndu/nsfw-api:latest
- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b
Expand All @@ -25,32 +25,20 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }} # optional
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_PASSWORD }} # optional
- name: Docker Metadata action
# You may pin to the exact commit or the version.
# uses: docker/metadata-action@69f6fc9d46f2f8bf0d5491e4aabe0bb8c6a4678a
id: meta
uses: docker/[email protected]
with:
# List of Docker images to use as base name for tags
images: penndu/nsfw-api
# List of tags as key-value pair attributes
tags: latest # optional
- uses: kitabisa/docker-slim-action@v1
env:
DSLIM_HTTP_PROBE: false
with:
target: penndu/nsfw-api:latest
tag: "slim"
tag: "penndu/nsfw-api:slim"
- name: Build and push Docker images
# You may pin to the exact commit or the version.
# uses: docker/build-push-action@c84f38281176d4c9cdb1626ffafcd6b3911b5d94
uses: docker/[email protected]
with:
# List of metadata for an image
labels: ${{ steps.meta.outputs.labels }} # optional
# List of target platforms for build
platforms: linux/amd64,linux/arm64,linux/arm # optional
# Push is a shorthand for --output=type=registry
push: true # optional, default is false
# List of tags
tags: slim # optional
tags: penndu/nsfw-api:slim # optional

0 comments on commit 4eedf5c

Please sign in to comment.