Skip to content

1.0.0

1.0.0 #1

Workflow file for this run

name: Docker Build and Push
on:
push:
tags:
- '*'
jobs:
build:
name: Build and push to GitHub Container Registry
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Set VERSION
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Login to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.repository_owner }}" --password-stdin
- name: Setup Docker buildx
run: docker buildx create --use
- name: Run Docker buildx
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--build-arg VERSION=${{ env.VERSION }} \
--tag ghcr.io/${{ github.repository }}:${{ env.VERSION }} \
--push .