Skip to content

Commit a57bdc7

Browse files
authored
Merge pull request #147 from OpenVoxProject/prep_templating
ci: update sync.yml for templating
2 parents c9aef73 + 7837e42 commit a57bdc7

1 file changed

Lines changed: 58 additions & 2 deletions

File tree

.sync.yml

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
.github/workflows/ci.yml:
2+
:global:
33
matrix_command: bash matrix.sh build
44
matrix_requires_yq: true
5-
build_job_name: 'Build ${{ matrix.os }} / ${{ matrix.platform }} CI container'
65
build_runner: '${{ matrix.runner }}'
76
build_file: 'Containerfile.${{ matrix.os }}'
87
image_tag: 'ci/openvoxserver:${{ matrix.server_version }}-${{ matrix.os }}-${{ matrix.platform }}'
@@ -14,3 +13,60 @@
1413
- 'RUBYGEM_R10K=${{ matrix.rubygem_r10k }}'
1514
- 'RUBYGEM_RUGGED=${{ matrix.rubygem_rugged }}'
1615
- 'JDK_VERSION=${{ matrix.jdk_version }}'
16+
.github/workflows/ci.yml:
17+
build_job_name: 'Build ${{ matrix.os }} / ${{ matrix.platform }} CI container'
18+
.github/workflows/security_scanning.yml:
19+
scan_job_name: 'Scan ${{ matrix.os }} / ${{ matrix.platform }} container'
20+
sarif_category: 'grype-${{ matrix.os }}-${{ matrix.platform }}'
21+
.github/workflows/build_container.yml:
22+
publish_tag_patterns:
23+
- 'v*'
24+
publish_build_job_name: 'Build OpenVox Server ${{ matrix.server_version }} (${{ matrix.os }}/${{ matrix.platform }})'
25+
publish_build_arch: 'linux/${{ matrix.platform }}'
26+
publish_tags:
27+
- 'ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-${{ matrix.os }}-${{ matrix.platform }}'
28+
publish_manifest_matrix_command: bash matrix.sh tag
29+
publish_manifest_steps:
30+
- name: Create ref-specific Ubuntu manifest
31+
commands:
32+
- >-
33+
docker buildx imagetools create
34+
-t ghcr.io/openvoxproject/openvoxserver:${{ matrix.server_version }}-${{ github.ref_name }}
35+
-t ghcr.io/openvoxproject/openvoxserver:${{ matrix.server_version }}
36+
-t ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}
37+
-t docker.io/voxpupuli/openvoxserver:${{ matrix.server_version }}-${{ github.ref_name }}
38+
-t docker.io/voxpupuli/openvoxserver:${{ matrix.server_version }}
39+
-t docker.io/voxpupuli/openvoxserver:${{ matrix.release }}
40+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-ubuntu-arm64
41+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-ubuntu-amd64
42+
- name: Create ref-specific Alpine manifest
43+
commands:
44+
- >-
45+
docker buildx imagetools create
46+
-t ghcr.io/openvoxproject/openvoxserver:${{ matrix.server_version }}-${{ github.ref_name }}-alpine
47+
-t ghcr.io/openvoxproject/openvoxserver:${{ matrix.server_version }}-alpine
48+
-t ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-alpine
49+
-t docker.io/voxpupuli/openvoxserver:${{ matrix.server_version }}-${{ github.ref_name }}-alpine
50+
-t docker.io/voxpupuli/openvoxserver:${{ matrix.server_version }}-alpine
51+
-t docker.io/voxpupuli/openvoxserver:${{ matrix.release }}-alpine
52+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-alpine-arm64
53+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-alpine-amd64
54+
- name: Update floating Ubuntu tag
55+
if: "github.ref == 'refs/heads/main'"
56+
commands:
57+
- >-
58+
docker buildx imagetools create
59+
-t ghcr.io/openvoxproject/openvoxserver:latest
60+
-t docker.io/voxpupuli/openvoxserver:latest
61+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-ubuntu-arm64
62+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-ubuntu-amd64
63+
- name: Update floating Alpine tag
64+
if: "github.ref == 'refs/heads/main'"
65+
commands:
66+
- >-
67+
docker buildx imagetools create
68+
-t ghcr.io/openvoxproject/openvoxserver:latest-alpine
69+
-t docker.io/voxpupuli/openvoxserver:latest-alpine
70+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-alpine-arm64
71+
ghcr.io/openvoxproject/openvoxserver:${{ matrix.release }}-${{ github.sha }}-alpine-amd64
72+
dockerhub_repository: voxpupuli/openvoxserver

0 commit comments

Comments
 (0)