Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frontend-vue-2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Bioinformatics
frontend-vue-2
Commits
aa543ac7
Commit
aa543ac7
authored
1 year ago
by
xpetrov4
Browse files
Options
Downloads
Patches
Plain Diff
fix CI
parent
0359f8e2
Branches
Branches containing commit
2 merge requests
!3
Resolve "Z-DNA view error"
,
!1
Resolve "Move frontend to separate project"
Pipeline
#165172
passed with warnings with stage
Stage:
in 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-30
15 additions, 30 deletions
.gitlab-ci.yml
with
15 additions
and
30 deletions
.gitlab-ci.yml
+
15
−
30
View file @
aa543ac7
variables
:
DOCKER_HOST
:
$DOCKER_HOST_BIO
PROJECT_NAME
:
"
gateway
"
PROJECT_NAME
:
"
frontend
"
cache
:
untracked
:
true
key
:
"
$CI_COMMIT_MESSAGE"
key
:
$CI_COMMIT_REF_NAME
paths
:
-
.gradle
-
build
-
build/
stages
:
-
analyse
-
build
-
verification
-
publish
-
deploy
...
...
@@ -40,26 +36,22 @@ code_quality_json:
artifacts
:
paths
:
[
gl-code-quality-report.json
]
# ===========================================================================
# Stage: build
# ===========================================================================
gradlew-bootJar
:
stage
:
build
image
:
eclipse-temurin:17-jdk-alpine
script
:
-
./gradlew bootJar
docker-build-latest
:
stage
:
build
image
:
docker:git
only
:
refs
:
-
main
-
1-extrahovat-gateway-z-projketu-dna-analyser
except
:
variables
:
-
$CI_COMMIT_TAG
before_script
:
-
mkdir -p build
script
:
-
docker build -t $DOCKER_NAMESPACE/$PROJECT_NAME:latest .
-
docker save -o build/image.tar $DOCKER_NAMESPACE/$PROJECT_NAME:latest
...
...
@@ -70,26 +62,20 @@ docker-build-tag:
only
:
variables
:
-
$CI_COMMIT_TAG
before_script
:
-
mkdir -p build
script
:
-
docker build -t $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG .
-
docker save -o build/image.tar $DOCKER_NAMESPACE/gateway:$CI_COMMIT_TAG
-
docker save -o build/image.tar $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG
# ===========================================================================
# Stage: test
#
# TODO
# ===========================================================================
verification-unit
:
stage
:
verification
image
:
eclipse-temurin:17-jdk-alpine
allow_failure
:
true
script
:
-
./gradlew test
artifacts
:
when
:
always
reports
:
junit
:
build/test-results/test/**/TEST-*.xml
# ===========================================================================
# Stage: publish
...
...
@@ -100,9 +86,8 @@ docker-push-latest:
image
:
docker
only
:
-
main
-
1-extrahovat-gateway-z-projketu-dna-analyser
before_script
:
-
docker login -u $DOCKER_USERNAME -p $DOCKER_
PASSWORD
-
docker login -u $DOCKER_USERNAME -p $DOCKER_
TOKEN $DOCKER_REGISTRY
script
:
-
docker load -i build/image.tar
-
docker push $DOCKER_NAMESPACE/$PROJECT_NAME:latest
...
...
@@ -114,11 +99,12 @@ docker-push-tag:
variables
:
-
$CI_COMMIT_TAG
before_script
:
-
docker login -u $DOCKER_USERNAME -p $DOCKER_
PASSWORD
-
docker login -u $DOCKER_USERNAME -p $DOCKER_
TOKEN $DOCKER_REGISTRY
script
:
-
docker load -i build/image.tar
-
docker push $DOCKER_NAMESPACE/$PROJECT_NAME:$CI_COMMIT_TAG
# ===========================================================================
# Stage: deploy
# ===========================================================================
...
...
@@ -127,7 +113,6 @@ deploy-bioinformatika.pef.mendelu.cz:
stage
:
deploy
only
:
-
main
-
1-extrahovat-gateway-z-projketu-dna-analyser
script
:
-
cp .env /home/bioinformatics/
-
cd /home/bioinformatics/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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