Skip to content

26-02-2025 Release

26-02-2025 Release #16

Workflow file for this run

name: Docker
on:
workflow_dispatch:
release:
types: [created]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository is in the format <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
matrix:
component: [anndata2rdf, translator_api_mapper]
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup environment
run: echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Extract metadata for ${{ matrix.component }}
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.component }}
- name: Build and push Docker image for ${{ matrix.component }}
uses: docker/[email protected]
with:
context: "./${{ matrix.component }}/"
push: true
platforms: linux/amd64, linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}