This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
Merge pull request #30 from Jzow/master #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
VERSION: 0.0.22 | |
REPO: docker.io | |
stages: | |
- info | |
- build | |
- publish | |
info-job: | |
stage: info | |
script: | |
- echo "Start build version $VERSION" | |
- export VERSION=$VERSION | |
- export DOCKER_USERNAME=$DOCKER_USERNAME | |
- export DOCKER_PASSWORD=$DOCKER_PASSWORD | |
- export REPO=$REPO | |
build-job: | |
stage: build | |
script: | |
- echo "Compiling the code and build docker image..." | |
- make docker | |
- echo "Compile complete." | |
deploy-job: | |
stage: publish | |
environment: production | |
script: | |
- echo "Publish docker images..." | |
- make publish-docker | |
- echo "Docker images successfully published." |