Skip to content

Commit

Permalink
Add image for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschndr committed Jul 27, 2024
1 parent ce585b1 commit 98319a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
docker build . --tag ghcr.io/${{github.repository}}:${{github.ref_name}}
docker push ghcr.io/${{github.repository}}:${{github.ref_name}}
- name: "Build Image as latest and Push to Container Registry"
- name: "Build Image and Push to Container Registry for linux/arm"
run: |
docker build . --tag ghcr.io/${{github.repository}}:${{github.ref_name}}-linux-arm --platform linux/arm
docker push ghcr.io/${{github.repository}}:${{github.ref_name}}-linux-arm
- name: "Tag image on main as latest"
if: github.ref == 'refs/heads/main'
run: |
docker build . --tag ghcr.io/${{github.repository}}:latest
docker pull ghcr.io/${{github.repository}}:${{github.ref_name}}
docker tag ghcr.io/${{github.repository}}:${{github.ref_name}} ghcr.io/${{github.repository}}:latest
docker push ghcr.io/${{github.repository}}:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-alpine
FROM --platform=$BUILDPLATFORM python:3.10-alpine

LABEL org.opencontainers.image.source="https://github.com/felixschndr/mealie-bring-api"
LABEL org.opencontainers.image.description="The container image of the mealie bring api integration (https://github.com/felixschndr/mealie-bring-api)"
Expand Down

0 comments on commit 98319a6

Please sign in to comment.