From 509ec40aa576d0455d4c40d07a59e6210d2a3cc6 Mon Sep 17 00:00:00 2001 From: GoliathLabs Date: Thu, 10 Oct 2024 11:32:55 -0400 Subject: [PATCH] set APP_VERSION --- .github/workflows/build.yml | 3 +++ .github/workflows/publish.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2942a8e..2c304b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,9 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} labels: | org.opencontainers.image.authors=${{ env.AUTHOR }} + - name: Read APP_VERSION from file + id: app_version + run: echo "APP_VERSION=$(cat APP_VERSION)" >> $GITHUB_ENV - name: Build Docker image uses: docker/build-push-action@v6 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4a70ddf..60a7ab0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,6 +44,9 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} labels: | org.opencontainers.image.authors=${{ env.AUTHOR }} + - name: Read APP_VERSION from file + id: app_version + run: echo "APP_VERSION=$(cat APP_VERSION)" >> $GITHUB_ENV - name: Build container image uses: docker/build-push-action@v6 with: