Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sitodo PMPL
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PMPL
Examples
Sitodo PMPL
Commits
fad1b164
Commit
fad1b164
authored
1 year ago
by
Daya Adianto
Browse files
Options
Downloads
Patches
Plain Diff
Fix CI rule for deploying to production environment
parent
595da226
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Fix CI rule for deploying to production environment
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-7
8 additions, 7 deletions
.gitlab-ci.yml
with
8 additions
and
7 deletions
.gitlab-ci.yml
+
8
−
7
View file @
fad1b164
...
...
@@ -19,7 +19,6 @@ variables:
--show-version
-DinstallAtEnd=true
-DdeployAtEnd=true
SAST_JAVA_VERSION
:
17
# TODO: Add Code Quality and SAST job templates into the CI/CD pipeline configuration
# Check the list of available templates at https://gitlab.com/gitlab-org/gitlab/-/tree/master/lib/gitlab/ci/templates
...
...
@@ -37,7 +36,7 @@ stages:
.upstream-deploy-production-rules
:
rules
:
-
if
:
$CI_PROJECT_NAMESPACE != "pmpl/examples
/sitodo-pmpl
"
-
if
:
$CI_PROJECT_NAMESPACE != "pmpl/examples"
when
:
never
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when
:
always
...
...
@@ -106,8 +105,7 @@ deploy:
image
:
docker.io/flyio/flyctl:v0.1.103
variables
:
FLY_API_TOKEN
:
$PRODUCTION_FLY_API_TOKEN
rules
:
-
!reference
[
.upstream-deploy-production-rules
,
rules
]
rules
:
!reference
[
.upstream-deploy-production-rules
,
rules
]
script
:
-
flyctl deploy --remote-only
environment
:
...
...
@@ -129,10 +127,13 @@ bdd-test:
POSTGRES_PASSWORD
:
sitodo_cicd
rules
:
-
!reference
[
.upstream-deploy-production-rules
,
rules
]
-
allow_failure
:
true
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when
:
always
allow_failure
:
true
needs
:
-
build
-
deploy
-
job
:
build
-
job
:
deploy
optional
:
true
before_script
:
-
apt-get update && apt-get install -y firefox
-
sed -i "s#headless.mode =
false
#headless.mode =
true
#" src/test/resources/serenity.conf
...
...
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