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:
|
pulumi-up:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Send Deployment Request
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
curl -X POST https://pulumi.com \
|
||||||
# Stack name assumes the runner is logged into the same Pulumi Cloud
|
-H "Authorization: token ${{ secrets.PULUMI_ACCESS_TOKEN }}" \
|
||||||
# org as `pulumi.yaml`'s default; if PULUMI_ACCESS_TOKEN's org differs,
|
-H "Content-Type: application/json" \
|
||||||
# qualify this as "<org>/main" instead.
|
-d '{
|
||||||
- name: Pulumi up
|
"operation": "update",
|
||||||
uses: pulumi/actions@v6
|
"inheritSettings": true,
|
||||||
with:
|
"sourceContext": {
|
||||||
command: preview
|
"branch": "main"
|
||||||
stack-name: main
|
}
|
||||||
work-dir: infrastructure
|
}'
|
||||||
env:
|
|
||||||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user