Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
6883db6d
Commit
6883db6d
authored
3 years ago
by
Miroslav Kratochvil
Browse files
Options
Downloads
Patches
Plain Diff
clean up
parent
b17d1aa1
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
+19
-8
19 additions, 8 deletions
.gitlab-ci.yml
with
19 additions
and
8 deletions
.gitlab-ci.yml
+
19
−
8
View file @
6883db6d
...
...
@@ -10,7 +10,9 @@ variables:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
APPTAINER_DOCKER_TAG
:
"
v3.9.4"
DOCKER_TAG
:
"
lcsbbiocore/cobrexa.jl"
DOCKER_HUB_TAG
:
"
lcsbbiocore/cobrexa.jl"
DOCKER_GHCR_TAG
:
"
lcsb-biocore/docker/cobrexa.jl"
APPTAINER_GHCR_TAG
:
"
lcsb-biocore/apptainer/cobrexa.jl"
#
# Predefined conditions for triggering jobs
...
...
@@ -254,32 +256,41 @@ apptainer-release:
stage
:
assets
script
:
-
|
# build the container
alias apptainer=singularity
apptainer build cobrexa.sif cobrexa.def
-
|
# push to GHCR
alias apptainer=singularity
export SINGULARITY_DOCKER_USERNAME="$GITHUB_ACCESS_USERNAME"
export SINGULARITY_DOCKER_PASSWORD="$GITHUB_ACCESS_TOKEN"
apptainer push cobrexa.sif "oras://ghcr.io/
lcsb-biocore/cobrexa.jl
:latest"
apptainer push cobrexa.sif "oras://ghcr.io/
lcsb-biocore/cobrexa.jl
:$CI_COMMIT_TAG"
apptainer push cobrexa.sif "oras://ghcr.io/
$APPTAINER_GHCR_TAG
:latest"
apptainer push cobrexa.sif "oras://ghcr.io/
$APPTAINER_GHCR_TAG
:$CI_COMMIT_TAG"
<<
:
*global_build_apptainer
<<
:
*global_trigger_release_containers
docker-test
:
stage
:
assets
script
:
-
docker build -t "$DOCKER_TAG:testing" .
-
docker build -t "$DOCKER_
HUB_
TAG:testing" .
<<
:
*global_dind
<<
:
*global_trigger_test_containers
docker-release
:
stage
:
assets
script
:
-
docker build -t "$DOCKER_TAG:latest" .
-
docker tag "$DOCKER_TAG:latest" "$DOCKER_TAG:$CI_COMMIT_TAG"
-
docker build -t "$DOCKER_HUB_TAG:latest" .
# alias and push to docker hub
-
docker tag "$DOCKER_HUB_TAG:latest" "$DOCKER_HUB_TAG:$CI_COMMIT_TAG"
-
echo "$DOCKER_IO_ACCESS_TOKEN" | docker login --username "$DOCKER_IO_USER" --password-stdin
-
docker push "$DOCKER_TAG:latest"
-
docker push "$DOCKER_TAG:$CI_COMMIT_TAG"
-
docker push "$DOCKER_HUB_TAG:latest"
-
docker push "$DOCKER_HUB_TAG:$CI_COMMIT_TAG"
# make 2 extra aliases and push to GHCR
-
docker tag "$DOCKER_HUB_TAG:latest" "$DOCKER_GHCR_TAG:latest"
-
docker tag "$DOCKER_HUB_TAG:latest" "$DOCKER_GHCR_TAG:$CI_COMMIT_TAG"
-
echo "$GITHUB_ACCESS_TOKEN" | docker login ghcr.io --username "$GITHUB_ACCESS_USERNAME" --password-stdin
-
docker push "$DOCKER_GHCR_TAG:latest"
-
docker push "$DOCKER_GHCR_TAG:$CI_COMMIT_TAG"
<<
:
*global_dind
<<
:
*global_trigger_release_containers
...
...
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