Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai3
docker
apache2-base
Commits
142a312a
Commit
142a312a
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
446b42e3
Pipeline
#11678
passed with stages
in 52 seconds
Changes
2
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
+2
-29
.gitlab-ci.yml
.gitlab-ci.yml
+1
-29
build.sh
build.sh
+1
-0
No files found.
.gitlab-ci.yml
View file @
142a312a
i
mage
:
docker:latest
i
nclude
:
"
https://git.autistici.org/ai3/build-container/raw/master/common.yml"
stages
:
-
build
-
release
services
:
-
docker:dind
variables
:
IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
RELEASE_TAG
:
$CI_REGISTRY_IMAGE:latest
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.autistici.org
build
:
stage
:
build
script
:
-
docker build --pull -t $IMAGE_TAG .
-
docker push $IMAGE_TAG
release
:
stage
:
release
script
:
-
docker pull $IMAGE_TAG
-
docker tag $IMAGE_TAG $RELEASE_TAG
-
docker push $RELEASE_TAG
only
:
-
master
build.sh
View file @
142a312a
...
...
@@ -50,6 +50,7 @@ set -x
set
-e
umask
022
apt-get
-q
update
install_packages
${
BUILD_PACKAGES
}
${
PACKAGES
}
# Rsync our configuration, on top of /etc.
...
...
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