Skip to content

Bump actions/deploy-pages from 4.0.5 to 5.0.0 #123

Bump actions/deploy-pages from 4.0.5 to 5.0.0

Bump actions/deploy-pages from 4.0.5 to 5.0.0 #123

name: Release Container
# Based on https://vitepress.dev/guide/deploy#github-pages
# Enables automatic publishing of the website to GitHub Pages from main branch.
env:
platforms: linux/amd64,linux/arm64
on:
# run the workflow only for main branch or PRs
push:
branches:
- main
pull_request:
release:
types:
- released
# Allows you to run this workflow manually from the Actions tab for debugging purposes
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: container
cancel-in-progress: false
jobs:
# Build job
build-web:
name: Build
# Specify runner + deployment step
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
packages: write
steps:
# Check out the branch
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
# Fix "Corepack must currently be enabled by running corepack enable in your terminal."
- name: Enable Corepack
run: corepack enable
# Setup Node.js with yarn support
- name: Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version: "lts/*" # Ensures the latest LTS version is used
cache: yarn # npm / pnpm / yarn
# Install javascript dependencies with yarn
- name: Install dependencies
run: yarn install # or pnpm install / yarn install / bun install
# Build the website
- name: Build with VitePress
run: yarn run build # or pnpm docs:build / yarn docs:build / bun run docs:build
# # Publish as container
# publish-as-container:
# permissions:
# contents: read
# packages: write
# name: Build Container Image
# runs-on: ubuntu-latest
# # Add a dependency to the build job
# needs: build-web
# steps:
- name: Log in to GHCR
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Collect metadata
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf
id: meta
with:
images: |
ghcr.io/${{ github.repository}}
tags: |
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
flavor: |
latest=${{ startsWith(github.ref, 'refs/tags/') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a
with:
platforms: ${{ env.platforms }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd
- name: Build and push Docker image
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294
with:
context: .
platforms: ${{ env.platforms }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: Containerfile
push: true