From 0ccc7a579ba6a22d99ba000ae106f8bfdfb367e4 Mon Sep 17 00:00:00 2001 From: amitza Date: Sun, 13 Oct 2024 19:43:52 +0300 Subject: [PATCH 1/2] slack --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb537fb028..b8d761db5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Publish Lava Release on: push: tags: - - ‘v[0-9]+.[0-9]+.[0-9]+.*’ + - v[0-9]+.[0-9]+.[0-9]+.* workflow_dispatch: inputs: release_tag: From d33ba2b5398658598283b490cc00f2b29ce919c4 Mon Sep 17 00:00:00 2001 From: amitza Date: Wed, 16 Oct 2024 17:25:14 +0300 Subject: [PATCH 2/2] manual docker tag --- .github/workflows/release.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8d761db5d..ac3ad167e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,8 +79,22 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build and push (Manual) + uses: docker/build-push-action@v5 + if: ${{ github.event.inputs.release_tag != ''}} + with: + tags: | + type=raw,value=${{ github.event.inputs.release_tag }},enable=true + labels: ${{ steps.meta.outputs.labels }} + file: cmd/${{ matrix.binary }}/Dockerfile + platforms: linux/amd64,linux/arm64 + build-args: | + GIT_VERSION="${{ steps.meta.outputs.version }}" + GIT_COMMIT="${{ github.sha }}" + push: true - name: Build and push uses: docker/build-push-action@v5 + if: ${{ github.event.inputs.release_tag == ''}} with: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}