-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99f95ac
commit 39b45b4
Showing
18 changed files
with
554 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: Manual Doc build workflow | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: | ||
workflow_dispatch: | ||
# Inputs the workflow accepts. | ||
|
||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "greet" | ||
build_blog_site: | ||
# The type of runner that the job will run on | ||
runs-on: [ ubuntu-22.04-self-hosted ] | ||
# runs-on: [ self-hosted ] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Runs a single command using the runners shell | ||
- name: Show auth | ||
run: gcloud auth list | ||
- name: store secrets file | ||
run: | | ||
cat << EOF > /tmp/key.json | ||
${{ secrets.SERVICE_ACCOUNT_KEY }} | ||
EOF | ||
- name: activate service account | ||
run: gcloud auth activate-service-account --key-file=/tmp/key.json | ||
- name: Show auth | ||
run: gcloud auth list | ||
- name: Trigger doc build | ||
run: gcloud run jobs execute pu-cdn-build-doc-job-production --region europe-north1 --wait | ||
- name: Remove service account | ||
run: gcloud auth revoke | ||
- name: Remove access key file | ||
run: rm -f /tmp/key.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
### | ||
name: Automatic web build | ||
|
||
# Controls when the action will run. Workflow runs when manually triggered using the UI | ||
# or API. | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- automation | ||
jobs: | ||
# This workflow contains a single job called "greet" | ||
build_web_site: | ||
# The type of runner that the job will run on | ||
runs-on: [ ubuntu-22.04-self-hosted ] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Runs a single command using the runners shell | ||
- name: Show available accounts | ||
run: gcloud auth list | ||
- name: Store service account key file | ||
run: | | ||
cat << EOF > /tmp/key.json | ||
${{ secrets.SERVICE_ACCOUNT_KEY }} | ||
EOF | ||
- name: Activate service account | ||
run: gcloud auth activate-service-account --key-file=/tmp/key.json | ||
- name: Show available accounts | ||
run: gcloud auth list | ||
- name: Trigger web build | ||
run: gcloud run jobs execute pu-cdn-build-web-job-production --region europe-north1 --wait | ||
- name: Remove service account | ||
run: gcloud auth revoke | ||
- name: Remove service account key file | ||
run: rm -f /tmp/key.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.