-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.73 KB
/
build-web.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "📦 Build Web-Client Package"
on:
workflow_dispatch:
permissions:
contents: read
jobs:
gatherFacts:
runs-on: ubuntu-22.04
outputs:
appRepo: ${{ steps.variables.outputs.APP_REPO }}
appGitSha: ${{ steps.variables.outputs.APP_GIT_SHA }}
appVersion: ${{ steps.variables.outputs.APP_VERSION }}
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Gather Variables"
id: variables
run: |-
set -exu
echo "APP_REPO=$(yq --exit-status '.repository' web-client/metaValues.yaml)" >> ${GITHUB_OUTPUT}
echo "APP_GIT_SHA=$(yq --exit-status '.git_sha' web-client/metaValues.yaml)" >> ${GITHUB_OUTPUT}
echo "APP_VERSION=$(yq --exit-status '.version' web-client/metaValues.yaml)" >> ${GITHUB_OUTPUT}
fedora:
needs:
- gatherFacts
uses: ./.github/workflows/_meta-rpmBuild.yaml
with:
buildOs: fedora
buildImageTag: fedora-20221027
rpmSpec: web-client
repository: ${{ needs.gatherFacts.outputs.appRepo }}
repositoryRef: ${{ needs.gatherFacts.outputs.appGitSha }}
rockyLinux:
needs:
- gatherFacts
uses: ./.github/workflows/_meta-rpmBuild.yaml
with:
buildOs: rockylinux
buildImageTag: rockylinux-20221027
rpmSpec: web-client
repository: ${{ needs.gatherFacts.outputs.appRepo }}
repositoryRef: ${{ needs.gatherFacts.outputs.appGitSha }}
publishRpm:
needs:
- gatherFacts
- fedora
- rockyLinux
if: ${{ ! contains(needs.gatherFacts.outputs.appVersion, 'unstable') }}
runs-on: ubuntu-22.04
steps:
- name: "Download Artifacts"
uses: actions/download-artifact@v3
- name: "Debug"
run: ls -la