CI: Fix self-hosted GHA runners in GKE MGX-868 (#669) #247
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
name: Deploy docs | |
on: | |
push: | |
branches: [ develop ] | |
jobs: | |
docs: | |
permissions: | |
contents: write | |
id-token: write | |
runs-on: mangata-node-e2e-runners | |
container: | |
image: mangatasolutions/node-builder:multi-nightly-2022-11-21 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: '${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}' | |
service_account: '${{ secrets.GCP_SERVICE_ACCOUNT }}' | |
- name: Cache the Cargo dependencies | |
uses: mansagroup/[email protected] | |
with: | |
bucket: mangata-node-ci-cache | |
path: | | |
${{ github.workspace }}/target | |
/usr/local/cargo/git | |
/usr/local/cargo/registry | |
~/.cache/sccache | |
key: node-docs-cache-1-${{ hashFiles('Cargo.lock') }} | |
- name: Build docs | |
run: cargo doc | |
- name: Deploy to GCP | |
uses: google-github-actions/[email protected] | |
with: | |
path: ./target/doc/ | |
destination: mangata-docs-node | |
parent: false | |
concurrency: 50 | |
process_gcloudignore: false |