Skip to content

✨ split template workspace into separate repo #3

✨ split template workspace into separate repo

✨ split template workspace into separate repo #3

name: publish-base-image
on:
push:
branches:
- main
tags:
- "*"
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/n4mlz/siv3d-docker-base
tags: |
type=raw,value=latest
type=sha
type=ref,event=tag
- name: Build and push base image
uses: docker/build-push-action@v6
with:
context: .
file: docker/base/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max