From 1a020deff30ca84c886e3660a42ccdab43f69049 Mon Sep 17 00:00:00 2001 From: nilsnolde Date: Tue, 23 Jan 2024 14:31:18 +0100 Subject: [PATCH] just do the same as for vroom-express tag --- .github/workflows/publish_tags.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_tags.yml b/.github/workflows/publish_tags.yml index 4d397e7..2bf4ea4 100644 --- a/.github/workflows/publish_tags.yml +++ b/.github/workflows/publish_tags.yml @@ -19,6 +19,11 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 + # sure there's better ways, but not having the patience for the mess + - name: vroom tag + id: vroom_tag + run: echo "TAG=$(curl --silent 'https://api.github.com/repos/VROOM-Project/vroom/tags' | jq -r '.[0].name')" >> GITHUB_OUTPUT + - name: vroom-express tag id: vroom_express_tag run: echo "TAG=$(curl --silent 'https://api.github.com/repos/VROOM-Project/vroom-express/tags' | jq -r '.[0].name')" >> GITHUB_OUTPUT @@ -41,9 +46,9 @@ jobs: context: . push: true build-args: | - VROOM_RELEASE=${{ github.ref_name }} + VROOM_RELEASE=${{ steps.vroom_tag.outputs.TAG }} VROOM_EXPRESS_RELEASE=${{ steps.vroom_express_tag.outputs.TAG }} platforms: linux/amd64,linux/arm64 - tags: ghcr.io/vroom-project/vroom-docker:${{ github.ref_name }}" + tags: ghcr.io/vroom-project/vroom-docker:${{ steps.vroom_tag.outputs.TAG }}" cache-from: type=gha cache-to: type=gha,mode=max