feat(build): add RELEASE_VERSION argument to be able to pass release version via env

This commit is contained in:
kolaente
2025-01-29 08:38:52 +01:00
parent 56961a9a40
commit 5e62c219d3
3 changed files with 41 additions and 23 deletions
+10 -9
View File
@@ -9,23 +9,24 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Login to GHCR
- name: Git describe
id: ghd
uses: proudust/gh-describe@v2
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
push: true
tags: ghcr.io/go-vikunja/vikunja:unstable
tags: ghcr.io/go-vikunja/vikunja:unstable
build-args: |
RELEASE_VERSION:${{ steps.ghd.outputs.describe }}