Skip to content
This repository was archived by the owner on Jun 23, 2026. It is now read-only.

Commit c9f5aa6

Browse files
authored
feat: split pipelines into ci and release (#230) (#561)
Signed-off-by: Denis Makarenkov <denm15221@gmail.com>
1 parent a77e944 commit c9f5aa6

4 files changed

Lines changed: 123 additions & 118 deletions

File tree

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ci-${{ github.event.pull_request.number }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
lint:
18+
uses: platform-mesh/.github/.github/workflows/job-golang-lint.yml@main
19+
with:
20+
useTask: true
21+
22+
test:
23+
uses: platform-mesh/.github/.github/workflows/job-golang-test-source.yml@main
24+
with:
25+
useTask: true
26+
useLocalCoverageConfig: true
27+
28+
docker-build:
29+
uses: platform-mesh/.github/.github/workflows/job-docker-build.yml@main
30+
with:
31+
imageTagName: ghcr.io/platform-mesh/security-operator
32+
33+
quality-gate:
34+
if: always()
35+
permissions: {}
36+
needs: [lint, test, docker-build]
37+
runs-on: ubuntu-latest
38+
timeout-minutes: 1
39+
steps:
40+
- name: Check results
41+
run: |
42+
if [[ "${{ needs.lint.result }}" != "success" ]]; then
43+
echo "lint failed"
44+
exit 1
45+
fi
46+
if [[ "${{ needs.test.result }}" != "success" ]]; then
47+
echo "test failed"
48+
exit 1
49+
fi
50+
if [[ "${{ needs.docker-build.result }}" != "success" ]]; then
51+
echo "docker-build failed"
52+
exit 1
53+
fi

.github/workflows/pipeline.yaml

Lines changed: 0 additions & 117 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
issues: write
12+
packages: write
13+
pull-requests: write
14+
attestations: write
15+
16+
concurrency:
17+
group: release-${{ github.ref }}
18+
cancel-in-progress: false
19+
20+
jobs:
21+
lint:
22+
uses: platform-mesh/.github/.github/workflows/job-golang-lint.yml@main
23+
with:
24+
useTask: true
25+
26+
test:
27+
uses: platform-mesh/.github/.github/workflows/job-golang-test-source.yml@main
28+
secrets: inherit
29+
with:
30+
useTask: true
31+
useLocalCoverageConfig: true
32+
33+
create-version:
34+
uses: platform-mesh/.github/.github/workflows/job-create-version.yml@main
35+
secrets: inherit
36+
37+
docker-build-push:
38+
needs: [create-version, lint, test]
39+
uses: platform-mesh/.github/.github/workflows/job-docker-build-push.yml@main
40+
with:
41+
imageTagName: ghcr.io/platform-mesh/security-operator
42+
version: ${{ needs.create-version.outputs.version }}
43+
multiarch: true
44+
secrets: inherit
45+
46+
update-version:
47+
needs: [create-version, docker-build-push]
48+
uses: platform-mesh/.github/.github/workflows/job-chart-version-update.yml@main
49+
secrets: inherit
50+
with:
51+
appVersion: ${{ needs.create-version.outputs.version }}
52+
chart: security-operator
53+
targetRepository: platform-mesh/helm-charts
54+
55+
sbom:
56+
needs: [create-version, docker-build-push]
57+
uses: platform-mesh/.github/.github/workflows/job-sbom.yml@main
58+
with:
59+
imageReference: ghcr.io/platform-mesh/security-operator:${{ needs.create-version.outputs.version }}
60+
61+
image-ocm:
62+
needs: [create-version, docker-build-push, sbom]
63+
uses: platform-mesh/.github/.github/workflows/job-image-ocm.yml@main
64+
secrets: inherit
65+
with:
66+
imageReference: ghcr.io/platform-mesh/security-operator:${{ needs.create-version.outputs.version }}
67+
appVersion: ${{ needs.create-version.outputs.version }}
68+
repoName: security-operator
69+
commit: ${{ github.sha }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
# platform-mesh - security-operator
55
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/platform-mesh/security-operator/badge)](https://scorecard.dev/viewer/?uri=github.com/platform-mesh/security-operator)
6-
![build status](https://github.com/platform-mesh/security-operator/actions/workflows/pipeline.yaml/badge.svg)
6+
![build status](https://github.com/platform-mesh/security-operator/actions/workflows/ci.yml/badge.svg)
77

88
## Description
99
Security-operator is responsible for security related configuration in Platform-mesh.

0 commit comments

Comments
 (0)