Skip to content

multiqc_config as parameter, plus small fixes #17

multiqc_config as parameter, plus small fixes

multiqc_config as parameter, plus small fixes #17

name: Pandas custom image to GitHub Container Registry
on:
push:
branches: [main]
paths:
- "containers/pandas-scibioxl/*"
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE: ${{ github.repository }}/pandas-scibioxl
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v3
- name: Log into Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Get current date (for tag)
id: getdate
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: ./containers/pandas-scibioxl/
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.getdate.outputs.date }}
${{ env.REGISTRY }}/${{ env.IMAGE }}:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}