Skip to content

Upgrade XNAT to v1.9.1.1 and standard plugins #21

Upgrade XNAT to v1.9.1.1 and standard plugins

Upgrade XNAT to v1.9.1.1 and standard plugins #21

name: XNAT Image Build
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
REGISTRY: ghcr.io
PACKAGE_NAME: xnat
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}
tags: |
type=pep440,pattern={{raw}}
type=pep440,pattern={{version}}
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
# cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}:buildcache
# cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}:buildcache,mode=max
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ steps.meta.outputs.tags }}