Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
callidus
Machina Callida
Commits
67c79a93
Commit
67c79a93
authored
Sep 28, 2021
by
Konstantin Schulz
Browse files
CI now pushes to and pulls from Docker Hub
parent
13c22918
Pipeline
#32283
failed with stages
in 6 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
67c79a93
workflow
:
rules
:
-
if
:
'
$CI_COMMIT_TAG'
when
:
never
-
when
:
always
stages
:
-
tag_version
-
build
-
ci
-
coverage
variables
:
BACKEND_IMAGE
:
$CI_REGISTRY_USER/mcserver:latest
FRONTEND_IMAGE
:
$CI_REGISTRY_USER/mc_frontend:latest
workflow
:
rules
:
-
if
:
'
$CI_COMMIT_TAG'
when
:
never
-
when
:
always
tag_version
:
image
:
python:3.8-alpine
stage
:
tag_version
...
...
@@ -21,8 +24,11 @@ build:
-
docker:20.10.8-dind
stage
:
build
script
:
-
docker build ./mc_frontend -t machina_callida/mc_frontend:latest
-
docker build ./mc_frontend -t machina_callida/mcserver:latest
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
-
docker build ./mc_frontend -t $FRONTEND_IMAGE
-
docker push $FRONTEND_IMAGE
-
docker build ./mc_frontend -t $BACKEND_IMAGE
-
docker push $BACKEND_IMAGE
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
...
...
@@ -36,7 +42,7 @@ ci_frontend:
-
docker:20.10.8-dind
stage
:
ci
script
:
-
docker run --rm --entrypoint="npm run test-ci"
machina_callida/mc_frontend:latest
> ci_frontend.log
-
docker run --rm --entrypoint="npm run test-ci"
$FRONTEND_IMAGE
> ci_frontend.log
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
...
...
@@ -50,7 +56,7 @@ ci_backend:
-
docker:20.10.8-dind
stage
:
ci
script
:
-
docker run --rm --entrypoint="./coverage_backend.sh"
machina_callida/mcserver:latest
> ci_backend.log
-
docker run --rm --entrypoint="./coverage_backend.sh"
$BACKEND_IMAGE
> ci_backend.log
variables
:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
...
...
Write
Preview
Supports
Markdown
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