Skip to content

Commit e6994aa

Browse files
author
Adetokunbo Ige
committed
chore: update the pulumi stack name
Signed-off-by: Adetokunbo Ige <[email protected]>
1 parent a0caf11 commit e6994aa

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.github/workflows/pulumi-deploy.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
env:
1414
AWS_REGION: ${{ secrets.AWS_REGION }}
15+
defaults:
16+
run:
17+
working-directory: ./todo-app # Set the global working directory
1518

1619
permissions:
1720
id-token: write
@@ -36,16 +39,23 @@ jobs:
3639
run: |
3740
pip install -r requirements.txt
3841
42+
- name: Configure Pulumi
43+
working-directory: todo-app
44+
run: |
45+
pulumi stack select ExitoLab/todo-app/dev --non-interactive || pulumi stack init ExitoLab/todo-app/dev
46+
env:
47+
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
48+
3949
- uses: pulumi/actions@v3
4050
with:
4151
command: preview
42-
stack-name: dev
52+
stack-name: ExitoLab/todo-app/dev
4353
env:
4454
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
4555

4656
- uses: pulumi/actions@v3
4757
with:
4858
command: up
49-
stack-name: dev
59+
stack-name: ExitoLab/todo-app/dev
5060
env:
5161
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}

todo-app/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
*.pyc
22
venv/
3-

todo-app/Pulumi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ config:
99
pulumi:tags:
1010
value:
1111
pulumi:template: aws-python
12+
13+

todo-app/requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
pulumi>=3.0.0,<4.0.0
22
pulumi-aws>=6.0.2,<7.0.0
33
pulumi_docker==3.4.0
4-
setuptools
4+
setuptools
5+
6+
7+
8+

0 commit comments

Comments
 (0)