File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 6
6
- validate
7
7
- install
8
8
- preview
9
- - deploy
9
+ - dev
10
10
11
11
cache :
12
12
paths :
@@ -75,6 +75,8 @@ install:
75
75
only :
76
76
- branches
77
77
when : always
78
+ dependencies :
79
+ - validate
78
80
79
81
preview :
80
82
stage : preview
@@ -88,12 +90,13 @@ preview:
88
90
- install
89
91
only :
90
92
- branches
91
- when : manual
93
+ # Changed from 'manual' to 'on_success' to run automatically
94
+ when : on_success
92
95
needs :
93
96
- install
94
97
95
98
deploy-to-dev :
96
- stage : deploy
99
+ stage : dev
97
100
script :
98
101
- echo "Running Pulumi up"
99
102
- pulumi stack select dev || pulumi stack init dev
@@ -102,14 +105,18 @@ deploy-to-dev:
102
105
- main
103
106
when : manual
104
107
needs :
105
- - install
108
+ - preview # Changed from install to preview to maintain proper flow
106
109
107
- deployment -dev :
108
- stage : deploy
110
+ destroy -dev :
111
+ stage : dev
109
112
script :
110
113
- echo "Running Pulumi destroy for dev"
111
114
- pulumi stack select dev || pulumi stack init dev
112
115
- pulumi destroy --yes --non-interactive --color always
113
116
only :
114
117
- main
115
- when : manual
118
+ when : manual
119
+ dependencies :
120
+ - deploy-to-dev
121
+ needs :
122
+ - deploy-to-dev
You can’t perform that action at this time.
0 commit comments