Skip to content

add: bioconductor devel-amd64 #84

add: bioconductor devel-amd64

add: bioconductor devel-amd64 #84

name: Publish HoloFoodR case study Docker image
on:
push:
branches: [case-study]
env:
BIOC_VERSION: devel
IMAGE_NAME: ${{ github.repository }}
jobs:
build_and_publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64
build-args: BIOC_VERSION=${{ env.BIOC_VERSION }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}