Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
holi-notifications
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
app
holi-notifications
Commits
2c5a45f9
Commit
2c5a45f9
authored
3 weeks ago
by
Ole Langbehn
Browse files
Options
Downloads
Patches
Plain Diff
fix: switch from deprecated only to rules, dont use changes rules on manual builds
parent
c9e83fbd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-12
18 additions, 12 deletions
.gitlab-ci.yml
with
18 additions
and
12 deletions
.gitlab-ci.yml
+
18
−
12
View file @
2c5a45f9
...
@@ -156,14 +156,16 @@ staging_deploy:
...
@@ -156,14 +156,16 @@ staging_deploy:
url
:
https://staging.notifications.apis.holi.social
url
:
https://staging.notifications.apis.holi.social
variables
:
variables
:
ENVIRONMENT_ID
:
staging
ENVIRONMENT_ID
:
staging
only
:
rules
:
-
main
-
if
:
$CI_COMMIT_BRANCH == "main"
when
:
on_success
staging_smoketest
:
staging_smoketest
:
extends
:
.smoketest
extends
:
.smoketest
needs
:
[
'
staging_deploy'
]
needs
:
[
'
staging_deploy'
]
only
:
rules
:
-
main
-
if
:
$CI_COMMIT_BRANCH == "main"
when
:
on_success
resource_group
:
unified-api-staging
resource_group
:
unified-api-staging
staging_trigger_unified-api_redeployment
:
staging_trigger_unified-api_redeployment
:
...
@@ -174,8 +176,9 @@ staging_trigger_unified-api_redeployment:
...
@@ -174,8 +176,9 @@ staging_trigger_unified-api_redeployment:
forward
:
forward
:
yaml_variables
:
false
yaml_variables
:
false
pipeline_variables
:
false
pipeline_variables
:
false
only
:
rules
:
-
main
-
if
:
$CI_COMMIT_BRANCH == "main"
when
:
on_success
## production environment
## production environment
...
@@ -189,14 +192,16 @@ production_deploy:
...
@@ -189,14 +192,16 @@ production_deploy:
url
:
https://production.notifications.apis.holi.social
url
:
https://production.notifications.apis.holi.social
variables
:
variables
:
ENVIRONMENT_ID
:
production
ENVIRONMENT_ID
:
production
only
:
rules
:
-
production
-
if
:
$CI_COMMIT_BRANCH == "production"
when
:
on_success
production_smoketest
:
production_smoketest
:
extends
:
.smoketest
extends
:
.smoketest
needs
:
[
'
production_deploy'
]
needs
:
[
'
production_deploy'
]
only
:
rules
:
-
production
-
if
:
$CI_COMMIT_BRANCH == "production"
when
:
on_success
production_trigger_unified-api_redeployment
:
production_trigger_unified-api_redeployment
:
needs
:
[
'
production_smoketest'
]
needs
:
[
'
production_smoketest'
]
...
@@ -206,6 +211,7 @@ production_trigger_unified-api_redeployment:
...
@@ -206,6 +211,7 @@ production_trigger_unified-api_redeployment:
forward
:
forward
:
yaml_variables
:
false
yaml_variables
:
false
pipeline_variables
:
false
pipeline_variables
:
false
only
:
rules
:
-
production
-
if
:
$CI_COMMIT_BRANCH == "production"
when
:
on_success
resource_group
:
unified-api-production
resource_group
:
unified-api-production
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment