Skip to content

Commit

Permalink
fix(ci): fix wrong tagged build name
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <derek.su@suse.com>
(cherry picked from commit 7568271)
  • Loading branch information
derekbit authored and innobead committed Jul 12, 2024
1 parent 84a2227 commit a8ff3e9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:

# longhornio/longhorn-engine image
- name: docker-build-longhorn-engine
if: ${{ startsWith(github.ref, 'refs/heads/') }}
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -117,6 +118,17 @@ jobs:
sbom: true
build-args: |
ARCH=amd64
- name: docker-build-longhorn-engine-with-tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@v5
with:
context: .
push: false
platforms: linux/amd64
tags: longhornio/longhorn-engine:${{ github.ref_name }}-amd64
file: package/Dockerfile
build-args: |
ARCH=amd64
- name: docker-publish-longhorn-engine-with-tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -175,6 +187,7 @@ jobs:

# longhornio/longhorn-engine image
- name: docker-build-longhorn-engine
if: ${{ startsWith(github.ref, 'refs/heads/') }}
uses: docker/build-push-action@v5
with:
context: .
Expand All @@ -196,6 +209,17 @@ jobs:
sbom: true
build-args: |
ARCH=arm64
- name: docker-build-longhorn-engine-with-tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@v5
with:
context: .
push: false
platforms: linux/arm64
tags: longhornio/longhorn-engine:${{ github.ref_name }}-arm64
file: package/Dockerfile
build-args: |
ARCH=arm64
- name: docker-publish-longhorn-engine-with-tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: docker/build-push-action@v5
Expand Down

0 comments on commit a8ff3e9

Please sign in to comment.