From 821e16f73321a30894a22e372a683faa71a9ff02 Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 23 Apr 2024 18:07:32 -0700 Subject: [PATCH] image metadata tagging --- .forgejo/workflows/docker-build.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/docker-build.yaml b/.forgejo/workflows/docker-build.yaml index 0c9b0cc..586e5ce 100644 --- a/.forgejo/workflows/docker-build.yaml +++ b/.forgejo/workflows/docker-build.yaml @@ -1,7 +1,4 @@ -on: - push: - branches: - - 'main' +on: [push] jobs: build-container: runs-on: docker @@ -11,10 +8,15 @@ jobs: - run: apk add --no-cache nodejs git - name: login to container registry run: echo "${{ secrets.PACKAGE_PUBLISH_TOKEN }}" | docker login --username finn --password-stdin git.janky.solutions + - uses: https://github.com/docker/metadata-action + id: meta + with: + images: git.janky.solutions/finn/lockserver - name: build container image uses: docker/build-push-action@v4 with: file: Containerfile - tags: git.janky.solutions/finn/lockserver:latest + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64,linux/arm64,linux/armv7l push: true