This repository was archived by the owner on Aug 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-38
lines changed Expand file tree Collapse file tree 2 files changed +8
-38
lines changed Original file line number Diff line number Diff line change @@ -13,26 +13,11 @@ jobs:
13
13
# This workflow contains a single job called "greet"
14
14
build_doc_site :
15
15
# The type of runner that the job will run on
16
- runs-on : [ ubuntu- 22.04-self-hosted ]
16
+ runs-on : [ doc-builder- 22.04 ]
17
17
# runs-on: [ self-hosted ]
18
18
19
19
# Steps represent a sequence of tasks that will be executed as part of the job
20
20
steps :
21
- # Runs a single command using the runners shell
22
- - name : Show auth
23
- run : gcloud auth list
24
- - name : store secrets file
25
- run : |
26
- cat << EOF > /tmp/key.json
27
- ${{ secrets.SERVICE_ACCOUNT_KEY }}
28
- EOF
29
- - name : activate service account
30
- run : gcloud auth activate-service-account --key-file=/tmp/key.json
31
- - name : Show auth
32
- run : gcloud auth list
33
- - name : Trigger doc build
34
- run : gcloud run jobs execute pu-cdn-build-doc-job-production --region europe-north1 --wait
35
- - name : Remove service account
36
- run : gcloud auth revoke
37
- - name : Remove access key file
38
- run : rm -f /tmp/key.json
21
+ # Runs a single command using the runners shell
22
+ - name : Build_web
23
+ run : /scripts/build_doc.sh
Original file line number Diff line number Diff line change 7
7
push :
8
8
branches :
9
9
- master
10
- - automation
11
10
jobs :
12
11
# This workflow contains a single job called "greet"
13
12
build_web_site :
14
13
# The type of runner that the job will run on
15
- runs-on : [ ubuntu- 22.04-self-hosted ]
14
+ runs-on : [ web-builder- 22.04 ]
16
15
17
16
# Steps represent a sequence of tasks that will be executed as part of the job
18
17
steps :
19
18
# Runs a single command using the runners shell
20
- - name : Show available accounts
21
- run : gcloud auth list
22
- - name : Store service account key file
23
- run : |
24
- cat << EOF > /tmp/key.json
25
- ${{ secrets.SERVICE_ACCOUNT_KEY }}
26
- EOF
27
- - name : Activate service account
28
- run : gcloud auth activate-service-account --key-file=/tmp/key.json
29
- - name : Show available accounts
30
- run : gcloud auth list
31
- - name : Trigger web build
32
- run : gcloud run jobs execute pu-cdn-build-web-job-production --region europe-north1 --wait
33
- - name : Remove service account
34
- run : gcloud auth revoke
35
- - name : Remove service account key file
36
- run : rm -f /tmp/key.json
19
+ - name : Build_web
20
+ run : /scripts/build_web.sh
21
+
37
22
You can’t perform that action at this time.
0 commit comments