-
Notifications
You must be signed in to change notification settings - Fork 1
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
0934881
commit 7e9f4af
Showing
4 changed files
with
29 additions
and
24 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 |
---|---|---|
|
@@ -39,17 +39,24 @@ jobs: | |
url: https://${{ needs.read-env.outputs.hostname }}/ | ||
needs: | ||
- read-env | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install doctl | ||
uses: digitalocean/action-doctl@v2 | ||
- name: Google Cloud auth | ||
uses: google-github-actions/auth@v0 | ||
with: | ||
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | ||
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} | ||
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_ID_PROVIDER }} | ||
|
||
- name: Set up Cloud SDK | ||
uses: google-github-actions/[email protected] | ||
|
||
- name: Save kubeconfig | ||
run: doctl kubernetes cluster kubeconfig save ${{ vars.CLUSTER_NAME }} --expiry-seconds 600 | ||
run: gcloud container clusters get-credentials ${{ vars.CLUSTER_NAME }} --location ${{ vars.CLUSTER_LOCATION }} | ||
|
||
- name: Helm deploy | ||
# The two TLS secrets have to be put in files because they're multi-line | ||
|
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
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
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