Trying to make log level selectable #7
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: Docker Image CI | |
on: | |
push: | |
tags: | |
- 'v*' | |
branches: | |
- develop | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
flavor: | | |
latest=false | |
images: | | |
xnat/bli-image-splitter | |
tags: | | |
type=raw,value=latest,event=tag,enable=${{ startsWith(github.ref, 'refs/tags/v') }} | |
type=semver,pattern={{version}},event=tag,enable=${{ startsWith(github.ref, 'refs/tags/v') }} | |
type=raw,value=develop,event=push,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }} | |
labels: | | |
org.opencontainers.image.title=PIXI BLI Image Splitter | |
org.opencontainers.image.description=Split multi-subject bioluminescence images into individual subject images | |
org.opencontainers.image.url=https://pixi.org | |
org.opencontainers.image.source=https://github.com/preclinical-imaging/pixi-bli-split | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |