Skip to content

Commit eadfcbb

Browse files
committed
cicd: changed initial release version #minor
1 parent 358f438 commit eadfcbb

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
types: [closed]
99
branches: [main]
1010

11-
concurrency: production
11+
concurrency:
12+
group: production
1213

1314
jobs:
1415
release:
@@ -46,17 +47,17 @@ jobs:
4647
name: Build and publish Docker image to GitHub Packages
4748
needs: release
4849
if: needs.release.outputs.part != 'patch'
49-
runs-on: ${{ matrix.os }}
50+
runs-on: ubuntu-latest
5051
permissions:
5152
packages: write
5253
contents: read
54+
5355
strategy:
5456
matrix:
55-
include:
56-
- os: ubuntu-latest
57-
arch: amd64
58-
- os: ubuntu-22.04-arm
59-
arch: arm64
57+
arch:
58+
- amd64
59+
- arm64
60+
6061
steps:
6162
- name: Checkout repository
6263
uses: actions/checkout@v4
@@ -72,22 +73,24 @@ jobs:
7273
id: meta
7374
uses: docker/metadata-action@v5
7475
with:
75-
images: ghcr.io/${{ github.repository }}
76+
images: |
77+
ghcr.io/${{ github.repository }}/management
78+
ghcr.io/${{ github.repository }}/api
7679
tags: type=semver,pattern={{version}},value=${{ needs.release.outputs.new_tag }}
7780
flavor: latest=auto
7881

7982
- name: Set up QEMU
8083
uses: docker/setup-qemu-action@v3
8184
with:
82-
platforms: ${{ matrix.arch }}
85+
platforms: linux/${{ matrix.arch }}
8386

8487
- name: Set up Docker Buildx
8588
uses: docker/setup-buildx-action@v3
86-
env:
87-
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
8889
with:
8990
platforms: linux/${{ matrix.arch }}
90-
91+
env:
92+
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
93+
9194
- name: Build and push Management Docker image
9295
uses: docker/build-push-action@v6
9396
with:
@@ -99,7 +102,7 @@ jobs:
99102
ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }}
100103
ghcr.io/${{ github.repository }}/management:latest
101104
labels: ${{ steps.meta.outputs.labels }}
102-
cache-from: type=gha
105+
cache-from: type=gha
103106
cache-to: type=gha,mode=max
104107
provenance: false
105108
sbom: false
@@ -118,4 +121,4 @@ jobs:
118121
cache-from: type=gha
119122
cache-to: type=gha,mode=max
120123
provenance: false
121-
sbom: false
124+
sbom: false

0 commit comments

Comments
 (0)