Skip to content
Snippets Groups Projects
Commit 3a70b437 authored by Griefed's avatar Griefed :joystick:
Browse files

Change gitlab-ci according to d-zone and the different versions

parent 207285b0
No related branches found
No related tags found
No related merge requests found
......@@ -36,14 +36,17 @@ build:
stage: build
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
- docker pull $CI_REGISTRY_IMAGE:port || true
- docker build --cache-from $CI_REGISTRY_IMAGE:port --tag $CI_REGISTRY_IMAGE:port -f Dockerfile.port .
- docker push $CI_REGISTRY_IMAGE:port
- docker build --cache-from $CI_REGISTRY_IMAGE:proxy --tag $CI_REGISTRY_IMAGE:proxy -f Dockerfile.proxy .
- docker push $CI_REGISTRY_IMAGE:proxy
publish:
stage: publish
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
- docker build --tag $DOCKER_USER/$DOCKER_REPO:arm .
- docker push $DOCKER_USER/$DOCKER_REPO:arm
- docker system prune --all --force
- docker build --tag $DOCKER_USER/$DOCKER_REPO:arm.port -f Dockerfile.port .
- docker push $DOCKER_USER/$DOCKER_REPO:arm.port
- docker build --tag $DOCKER_USER/$DOCKER_REPO:arm.proxy -f Dockerfile.proxy .
- docker push $DOCKER_USER/$DOCKER_REPO:arm.proxy
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment