Commit 1af159a3 authored by Simon Metzler's avatar Simon Metzler Committed by Julien Schröter

Update CI configuration for k3s deployment

parent 025390f9
Pipeline #1954 canceled with stage
in 26 seconds
......@@ -80,56 +80,48 @@ compile:
dev_service:
stage: deploy
image: docker:stable
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- docker login registry.akamu.de -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t registry.akamu.de/akamu/game-server-go:dev .
- docker push registry.akamu.de/akamu/game-server-go:dev
- docker service update dev_backend_appserver --image registry.akamu.de/akamu/game-server-go:dev --force --with-registry-auth
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:dev
allow_failure: true
tags:
- deploy
only:
- development
service:
stage: deploy
image: docker:stable
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- docker login registry.akamu.de -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t registry.akamu.de/akamu/game-server-go .
- docker push registry.akamu.de/akamu/game-server-go
- docker service update backend_appserver --image registry.akamu.de/akamu/game-server-go:latest --force --with-registry-auth
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE
allow_failure: true
tags:
- deploy
only:
- master
dev_swagger:
stage: deploy
image: docker:stable
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- docker login registry.akamu.de -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t registry.akamu.de/akamu/game-server-go/swagger:dev -f Dockerfile_swagger .
- docker push registry.akamu.de/akamu/game-server-go/swagger:dev
- docker service update dev_website_swagger --image registry.akamu.de/akamu/game-server-go/swagger:dev --force
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile_swagger --destination $CI_REGISTRY_IMAGE/swagger:dev
allow_failure: true
tags:
- deploy
only:
- development
swagger:
stage: deploy
image: docker:stable
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- docker login registry.akamu.de -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t registry.akamu.de/akamu/game-server-go/swagger -f Dockerfile_swagger .
- docker push registry.akamu.de/akamu/game-server-go/swagger
- docker service update website_swagger --image registry.akamu.de/akamu/game-server-go/swagger:latest --force
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile_swagger --destination $CI_REGISTRY_IMAGE/swagger
allow_failure: true
tags:
- deploy
only:
- master
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment