Skip to content

Commit

Permalink
Adding label into dev container, too (has a bug, not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiMatter committed Feb 18, 2024
1 parent fda9dae commit d3bc476
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
Expand All @@ -47,8 +53,7 @@ jobs:
IMAGE_NAME: ghcr.io/manimatter/decluttarr
IMAGE_TAG: dev
run: |
docker build -f docker/Dockerfile -t $IMAGE_NAME:$IMAGE_TAG .
docker push $IMAGE_NAME:$IMAGE_TAG
docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME:$IMAGE_TAG --label com.decluttarr.version=$IMAGE_TAG -f docker/Dockerfile --push .
- name: "Delete untagged versions"
uses: actions/delete-package-versions@v4
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#FROM python:3.9-slim-buster
# For debugging:
# sudo docker run --rm -it --entrypoint sh ghcr.io/manimatter/decluttarr:dev

FROM python:3.10.13-slim
LABEL org.opencontainers.image.source="https://github.com/ManiMatter/decluttarr"

Expand Down

0 comments on commit d3bc476

Please sign in to comment.