Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
docker
roundcube
Commits
bde90138
Commit
bde90138
authored
Aug 24, 2020
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to ai3/build-container rules for CI
parent
ff960bc9
Pipeline
#7636
failed with stages
in 1 minute and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
29 deletions
+1
-29
.gitlab-ci.yml
.gitlab-ci.yml
+1
-29
No files found.
.gitlab-ci.yml
View file @
bde90138
i
mage
:
docker:latest
i
nclude
:
"
https://git.autistici.org/ai3/build-container/raw/master/common.yml"
stages
:
-
docker_build
-
release
services
:
-
docker:dind
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
RELEASE_TAG
:
$CI_REGISTRY_IMAGE:latest
GIT_SUBMODULE_STRATEGY
:
recursive
docker_build
:
stage
:
docker_build
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.autistici.org
-
docker build --build-arg ci_token=$CI_JOB_TOKEN --pull -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
release
:
stage
:
release
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.autistici.org
-
docker pull $IMAGE_TAG
-
docker tag $IMAGE_TAG $RELEASE_TAG
-
docker push $RELEASE_TAG
only
:
-
master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment