Fixed env.yaml #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Docker image | |
on: | |
push: | |
branches: [main] | |
release: | |
types: [published] | |
jobs: | |
push_to_registry: | |
if: github.repository == 'metagenlab/assembly_finder' | |
name: Build + Push Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- 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@v2 | |
# https://github.com/docker/setup-buildx-action | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push dev image | |
uses: docker/build-push-action@v3 | |
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: | | |
ghcr.io/metagenlab/assembly_finder:dev | |
- name: Push release image | |
uses: docker/build-push-action@v3 | |
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/assembly_finder:${{ github.event.release.tag_name }} | |
ghcr.io/metagenlab/assembly_finder:latest |