Skip to content

Commit 4ff43b5

Browse files
committed
cicd: changed initial release version #minor
1 parent bea4439 commit 4ff43b5

3 files changed

Lines changed: 325 additions & 4520 deletions

File tree

.github/workflows/publish.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency: production
1313
jobs:
1414
release:
1515
name: Tag and create GitHub release
16-
runs-on: ubuntu-24.04-arm
16+
runs-on: ubuntu-latest
1717
permissions:
1818
contents: write
1919
outputs:
@@ -39,14 +39,21 @@ jobs:
3939
uses: ncipollo/release-action@v1
4040
with:
4141
tag: ${{ steps.version.outputs.new_tag }}
42-
name: Release ${{ steps.version.outputs.new_tag }}
42+
name: ${{ steps.version.outputs.new_tag }}
4343
body: ${{ steps.version.outputs.changelog }}
4444

4545
publish:
4646
name: Build and publish Docker image to GitHub Packages
4747
needs: release
48-
# if: needs.release.outputs.part != 'patch'
49-
runs-on: ubuntu-24.04-arm
48+
if: needs.release.outputs.part != 'patch'
49+
runs-on: ${{ matrix.os }}
50+
strategy:
51+
matrix:
52+
include:
53+
- os: ubuntu-latest
54+
arch: amd64
55+
- os: ubuntu-22.04-arm
56+
arch: arm64
5057
permissions:
5158
packages: write
5259
contents: read
@@ -72,33 +79,33 @@ jobs:
7279
- name: Set up QEMU
7380
uses: docker/setup-qemu-action@v3
7481
with:
75-
platforms: arm64
82+
platforms: ${{ matrix.arch }}
7683

7784
- name: Set up Docker Buildx
7885
uses: docker/setup-buildx-action@v3
7986
with:
80-
platforms: linux/arm64
87+
platforms: linux/${{ matrix.arch }}
8188

8289
- name: Build and push API Docker image
8390
uses: docker/build-push-action@v6
8491
with:
8592
context: ./api
8693
file: ./api/Dockerfile
87-
platforms: linux/arm64
94+
platforms: linux/${{ matrix.arch }}
8895
push: true
8996
tags: |
9097
ghcr.io/${{ github.repository }}/api:${{ needs.release.outputs.new_tag }}
9198
ghcr.io/${{ github.repository }}/api:latest
9299
labels: ${{ steps.meta.outputs.labels }}
93100
cache-from: type=gha
94101
cache-to: type=gha,mode=max
95-
102+
96103
- name: Build and push Management Docker image
97104
uses: docker/build-push-action@v6
98105
with:
99106
context: ./management
100107
file: ./management/Dockerfile
101-
platforms: linux/arm64
108+
platforms: linux/${{ matrix.arch }}
102109
push: true
103110
tags: |
104111
ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }}

0 commit comments

Comments
 (0)