Skip to content
Snippets Groups Projects
Commit 11ca6f48 authored by ale's avatar ale
Browse files

Add CI configuration

parent 51fd0f4a
No related branches found
No related tags found
No related merge requests found
Pipeline #
image: docker:latest
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
#!/bin/sh
MASTERELECTION_NAME=${MASTERELECTION_NAME:-mariadb}
PUBLIC_ADDR=${PUBLIC_ADDR:-$(/bin/hostname):3306}
if [ -z "${PUBLIC_ADDR}" ]; then
echo "ERROR: PUBLIC_ADDR is undefined" >&2
exit 2
fi
wait_for_mysql() {
echo "Waiting for MySQL server to start up..." >&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment