Remove button that doesn't work anymore #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Standalone Docker Images | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
build-standalone: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
GO_VERSION: | |
- 1.23.1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.GO_VERSION }} | |
- name: APT Install | |
run: | | |
sudo dpkg --add-architecture arm64 | |
sudo apt-get -y install build-essential debhelper fakeroot crossbuild-essential-arm64 | |
- name: Build Debian packages | |
run: | | |
make debian | |
make debian-arm64 | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/hakwerk/labca-standalone | |
annotations: | | |
org.opencontainers.image.description=Standalone version of LabCA GUI for use with other ACME servers | |
org.opencontainers.image.documentation=https://github.com/hakwerk/labca/blob/master/README_standalone.md | |
org.opencontainers.image.title=labca-standalone | |
labels: | | |
org.opencontainers.image.description=Standalone version of LabCA GUI for use with other ACME servers | |
org.opencontainers.image.documentation=https://github.com/hakwerk/labca/blob/master/README_standalone.md | |
org.opencontainers.image.title=labca-standalone | |
tags: | | |
type=schedule,pattern={{date 'YYYYMMDD'}} | |
type=match,pattern=v(.*),group=1 | |
type=edge,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} | |
type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} | |
type=ref,event=pr | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.ACTION_PAT }} | |
- name: Build and push docker images | |
uses: docker/build-push-action@v6 | |
with: | |
annotations: ${{ steps.meta.outputs.annotations }} | |
context: release | |
file: build/Dockerfile-standalone | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64/v8 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} |