Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Jbrowse2 Annelids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Arendt Group
Jbrowse2 Annelids
Commits
d9f3bd11
Commit
d9f3bd11
authored
10 months ago
by
cyril.cros
Browse files
Options
Downloads
Patches
Plain Diff
Try this now
parent
40dd7072
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Check docker
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-1
27 additions, 1 deletion
.gitlab-ci.yml
with
27 additions
and
1 deletion
.gitlab-ci.yml
+
27
−
1
View file @
d9f3bd11
---
workflow
:
rules
:
# Do no allow manually triggered pipelines to prevent duplicates!
# Instead rerun the pipeline created with the last push
-
if
:
$CI_PIPELINE_SOURCE != "push"
when
:
never
# Only execute when using a valid version tag like v1.0 or v1.0.2
# - if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.?\d*$/
#- if: $CI_COMMIT_BRANCH == 'main'
variables
:
S3_ENDPOINT
:
"
https://s3.embl.de"
S3_BUCKET
:
"
annelids"
stages
:
-
download_from_s3
-
upload_to_s3
-
build_container
-
deploy_to_cluster
-
clean_up_on_failure
s3_access_test
:
image
:
minio/mc
stage
:
up
load_
to
_s3
stage
:
down
load_
from
_s3
before_script
:
-
mc alias set genomes $S3_ENDPOINT $S3_ACCESS_KEY $S3_SECRET_KEY
script
:
-
mc ls genomes/$S3_BUCKET
-
cd image
build_nginx_with_jbrowse_config_file
:
image
:
gcr.io/kaniko-project/executor:debug-v0.21.0
stage
:
build_container
before_script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
script
:
-
/kaniko/executor --cache=true --context $CI_PROJECT_DIR/image --dockerfile $CI_PROJECT_DIR/image/Dockerfile --destination $CI_REGISTRY_IMAGE:prod-$CI_COMMIT_SHORT_SHA
cluster_access_test
:
image
:
dtzar/helm-kubectl:3.8.2
stage
:
deploy_to_cluster
...
...
@@ -22,6 +46,7 @@ cluster_access_test:
-
export KUBECONFIG=/tmp/kubeconf
script
:
-
kubectl config current-context
kustomize_build_apply
:
image
:
dtzar/helm-kubectl:3.8.2
stage
:
deploy_to_cluster
...
...
@@ -33,6 +58,7 @@ kustomize_build_apply:
-
kubectl -n $NS wait --for=condition=available --timeout=60s deploy/jbrowse2
dependencies
:
-
cluster_access_test
clean_up_k8s_deployment
:
image
:
dtzar/helm-kubectl:3.8.2
stage
:
clean_up_on_failure
...
...
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