INFRA: Changed the INfra Pipeline from Running the Deployment Locally in The Gitea Runner To Triggeirng it in Pulumi
Deploy Infrastructure / pulumi-up (push) Successful in 2s
Deploy Infrastructure / pulumi-up (push) Successful in 2s
This commit is contained in:
@@ -20,17 +20,15 @@ jobs:
|
||||
pulumi-up:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Stack name assumes the runner is logged into the same Pulumi Cloud
|
||||
# org as `pulumi.yaml`'s default; if PULUMI_ACCESS_TOKEN's org differs,
|
||||
# qualify this as "<org>/main" instead.
|
||||
- name: Pulumi up
|
||||
uses: pulumi/actions@v6
|
||||
with:
|
||||
command: preview
|
||||
stack-name: main
|
||||
work-dir: infrastructure
|
||||
env:
|
||||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
|
||||
- name: Send Deployment Request
|
||||
run: |
|
||||
curl -X POST https://pulumi.com \
|
||||
-H "Authorization: token ${{ secrets.PULUMI_ACCESS_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"operation": "update",
|
||||
"inheritSettings": true,
|
||||
"sourceContext": {
|
||||
"branch": "main"
|
||||
}
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user