From 52b20adfe88860e03e30eb66e1a6f41c37e55d3a Mon Sep 17 00:00:00 2001 From: Tom Tankilevitch <59158507+Tankilevitch@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:32:04 +0300 Subject: [PATCH] [CI] Fix CI workflow (#26) --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d61f450..460af57 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,7 @@ on: jobs: - build: + release-image: runs-on: ubuntu-latest steps: @@ -25,18 +25,18 @@ jobs: registry: ghcr.io username: ${{ secrets.DOCKER_MACHINE_USER }} password: ${{ secrets.DOCKER_MACHINE_TOKEN }} + - name: Build and push + if: "!startsWith(github.ref_name, 'v')" uses: docker/build-push-action@v6 - if: !startsWith(github.ref_name, 'v') - with: push: true platforms: linux/amd64,linux/arm64 tags: ghcr.io/port-labs/port-sender:${{ github.ref_name }} - name: Build and push with latest tag + if: "startsWith(github.ref_name, 'v')" uses: docker/build-push-action@v6 - if: startsWith(github.ref_name, 'v') with: push: true platforms: linux/amd64,linux/arm64