Skip to content

Commit

Permalink
added paths
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Aug 21, 2024
1 parent 4454c1e commit 82e3ac8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Publish Docker image
on:
push:
branches: [main]
paths:
- "Dockerfile"
- ".github/workflows/docker-publish.yml"
- "tests/**"
- "mess/**"
- "setup.py"
release:
types: [published]

Expand All @@ -15,11 +21,9 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -35,9 +39,6 @@ jobs:
uses: docker/build-push-action@v6
if: github.event_name == 'push'
with:
# All available with python:3.X-slim are:
# platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
# But 32-bit binaries likely require compilation from source so stick with linux/amd64 and linux/arm64 for now
platforms: linux/amd64,linux/arm64
push: true
tags: |
Expand All @@ -47,11 +48,8 @@ jobs:
uses: docker/build-push-action@v6
if: github.event_name == 'release'
with:
# All available with python:3.X-slim are:
# platforms: linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
# But 32-bit binaries likely require compilation from source so stick with linux/amd64 and linux/arm64 for now
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/metagenlab/mess:${{ github.event.release.tag_name }}
ghcr.io/metagenlab/mess:latest
ghcr.io/metagenlab/mess:latest

0 comments on commit 82e3ac8

Please sign in to comment.