Skip to content

Make the search pattern for DeDup more specific #10

Make the search pattern for DeDup more specific

Make the search pattern for DeDup more specific #10

Workflow file for this run

name: "Docker image"
on:
pull_request:
paths:
# Step takes 5 min, too long for PR commits, so leaving it only to significant changes
- "pyproject.toml"
- "Dockerfile"
push:
# Build multiqc:dev on every push to main
branches: [main]
paths-ignore:
- "docs/**"
- "*.md"
release:
# Build release
types: [published]
workflow_dispatch:
jobs:
build:
if: github.repository == 'MultiQC/MultiQC'
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: "Log in to Docker Hub"
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "Login to GitHub Container Registry"
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build dev"
uses: docker/build-push-action@v3
if: github.event_name != 'pull_request' && 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
# If it's a PR, use the branch name as a tag, otherwise use "dev"
tags: |
${{ github.ref == 'refs/heads/main' && 'multiqc/multiqc:dev' || format('multiqc/multiqc:{0}', github.head_ref) }}
${{ github.ref == 'refs/heads/main' && 'ghcr.io/multiqc/multiqc:dev' || format('ghcr.io/multiqc/multiqc:{0}', github.head_ref) }}
- name: "Build release"
uses: docker/build-push-action@v3
if: github.event_name != 'pull_request' && 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: |
multiqc/multiqc:${{ github.event.release.tag_name }}
multiqc/multiqc:latest
ghcr.io/multiqc/multiqc:${{ github.event.release.tag_name }}
ghcr.io/multiqc/multiqc:latest