This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
test (#5) #4
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: staging-infra-deploy | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pull-requests: write | |
id-token: write | |
jobs: | |
staging-infra-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code | |
uses: actions/checkout@v4 | |
- name: set up golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
# Best practice: use a short-lived to auth to Pulumi Cloud | |
# The OIDC Issuer must be properly configured in the Pulumi Organization | |
# For more information, see | |
# https://www.pulumi.com/docs/pulumi-cloud/oidc/client/github/ | |
- name: setup pulumi cloud access | |
uses: pulumi/auth-actions@v1 | |
with: | |
organization: pulumi-sandbox-diana | |
requested-token-type: urn:pulumi:token-type:access_token:organization | |
- name: deploy infra | |
uses: pulumi/actions@v5 | |
with: | |
command: up | |
stack-name: pulumi-sandbox-diana/buzz/staging | |
work-dir: ./infra | |
comment-on-pr: true | |
comment-on-summary: true | |
edit-pr-comment: true |