Skip to content

Commit 52b20ad

Browse files
authored
[CI] Fix CI workflow (#26)
1 parent 15b92f8 commit 52b20ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010

1111
jobs:
12-
build:
12+
release-image:
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -25,18 +25,18 @@ jobs:
2525
registry: ghcr.io
2626
username: ${{ secrets.DOCKER_MACHINE_USER }}
2727
password: ${{ secrets.DOCKER_MACHINE_TOKEN }}
28+
2829
- name: Build and push
30+
if: "!startsWith(github.ref_name, 'v')"
2931
uses: docker/build-push-action@v6
30-
if: !startsWith(github.ref_name, 'v')
31-
3232
with:
3333
push: true
3434
platforms: linux/amd64,linux/arm64
3535
tags: ghcr.io/port-labs/port-sender:${{ github.ref_name }}
3636

3737
- name: Build and push with latest tag
38+
if: "startsWith(github.ref_name, 'v')"
3839
uses: docker/build-push-action@v6
39-
if: startsWith(github.ref_name, 'v')
4040
with:
4141
push: true
4242
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)