Skip to content

Commit f8e5d00

Browse files
committed
cicd: changed initial release version #minor
1 parent d22a264 commit f8e5d00

1 file changed

Lines changed: 12 additions & 18 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ jobs:
5454
packages: write
5555
contents: read
5656

57-
strategy:
58-
matrix:
59-
arch:
60-
- amd64
61-
- arm64
62-
6357
steps:
6458
- name: Checkout repository
6559
uses: actions/checkout@v4
@@ -96,29 +90,29 @@ jobs:
9690
with:
9791
context: ./management
9892
file: ./management/Dockerfile
99-
platforms: linux/${{ matrix.arch }}
93+
platforms: linux/amd64,linux/arm64
10094
push: true
101-
tags: |
102-
ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }}
103-
ghcr.io/${{ github.repository }}/management:latest
10495
labels: ${{ steps.meta.outputs.labels }}
105-
cache-from: type=gha
106-
cache-to: type=gha,mode=max
96+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/management:cache
97+
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/management:cache,mode=max
10798
provenance: false
10899
sbom: false
100+
tags: |
101+
ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }}
102+
ghcr.io/${{ github.repository }}/management:latest
109103
110104
- name: Build and push API Docker image
111105
uses: docker/build-push-action@v6
112106
with:
113107
context: ./api
114108
file: ./api/Dockerfile
115-
platforms: linux/${{ matrix.arch }}
109+
platforms: linux/amd64,linux/arm64
116110
push: true
117-
tags: |
118-
ghcr.io/${{ github.repository }}/api:${{ needs.release.outputs.new_tag }}
119-
ghcr.io/${{ github.repository }}/api:latest
120111
labels: ${{ steps.meta.outputs.labels }}
121-
cache-from: type=gha
122-
cache-to: type=gha,mode=max
112+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}/api:cache
113+
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}/api:cache,mode=max
123114
provenance: false
124115
sbom: false
116+
tags: |
117+
ghcr.io/${{ github.repository }}/api:${{ needs.release.outputs.new_tag }}
118+
ghcr.io/${{ github.repository }}/api:latest

0 commit comments

Comments
 (0)