Skip to content

Update container

Update container #15

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 }}