Do not add changelog if chore or docs #71
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: [master] | |
release: | |
types: [published] | |
jobs: | |
push_to_registry: | |
if: github.repository == 'ewels/MultiQC' | |
name: Build + Push Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
# 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: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- 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.11-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: | | |
ewels/multiqc:dev | |
ghcr.io/ewels/multiqc:dev | |
- name: Push release image | |
uses: docker/build-push-action@v3 | |
if: github.event_name == 'release' | |
with: | |
# All available with python:3.11-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: | | |
ewels/multiqc:${{ github.event.release.tag_name }} | |
ewels/multiqc:latest | |
ghcr.io/ewels/multiqc:${{ github.event.release.tag_name }} | |
ghcr.io/ewels/multiqc:latest |