Skip to content
Snippets Groups Projects
Commit ac0ab640a794 authored by Alexander Trost's avatar Alexander Trost
Browse files

Use new image.entrypoint and image.name GitLab CI format

parent 5ce824774d24
No related branches found
No related tags found
No related merge requests found
image: golang:1.10.3-stretch image:
name: golang:1.10.3-stretch
entrypoint: ["/bin/sh", "-c"]
# The problem is that to be able to use go get, one needs to put # The problem is that to be able to use go get, one needs to put
# the repository in the $GOPATH. So for example if your gitlab domain # the repository in the $GOPATH. So for example if your gitlab domain
...@@ -43,7 +45,9 @@ ...@@ -43,7 +45,9 @@
# For this you need to set `S3_ACCESS_KEY` and `S3_SECRET_KEY` in your GitLab project CI's secret variables # For this you need to set `S3_ACCESS_KEY` and `S3_SECRET_KEY` in your GitLab project CI's secret variables
#release_upload: #release_upload:
# stage: release # stage: release
# image: minio/mc # image:
# name: minio/mc
# entrypoint: ["/bin/sh", "-c"]
# script: # script:
# - echo "=> We already have artifact sotrage in GitLab! This is for demonstational purposes only." # - echo "=> We already have artifact sotrage in GitLab! This is for demonstational purposes only."
# - mc config host add edenmalmoe https://s3.edenmal.net ${ACCESS_KEY} ${SECRET_KEY} S3v4 # - mc config host add edenmalmoe https://s3.edenmal.net ${ACCESS_KEY} ${SECRET_KEY} S3v4
...@@ -53,7 +57,9 @@ ...@@ -53,7 +57,9 @@
image_build: image_build:
stage: release stage: release
image: docker:latest image:
name: docker:latest
entrypoint: ["/bin/sh", "-c"]
variables: variables:
DOCKER_HOST: tcp://localhost:2375 DOCKER_HOST: tcp://localhost:2375
services: services:
...@@ -67,7 +73,9 @@ ...@@ -67,7 +73,9 @@
- docker push "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}" - docker push "${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_NAME}"
deploy_review: deploy_review:
image: lachlanevenson/k8s-kubectl:latest image:
name: lachlanevenson/k8s-kubectl:latest
entrypoint: ["/bin/sh", "-c"]
stage: review stage: review
only: only:
- branches - branches
...@@ -95,7 +103,9 @@ ...@@ -95,7 +103,9 @@
- kubectl get all,ing -l ref=${CI_ENVIRONMENT_SLUG} - kubectl get all,ing -l ref=${CI_ENVIRONMENT_SLUG}
stop_review: stop_review:
image: lachlanevenson/k8s-kubectl:latest image:
name: lachlanevenson/k8s-kubectl:latest
entrypoint: ["/bin/sh", "-c"]
stage: review stage: review
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
...@@ -114,7 +124,9 @@ ...@@ -114,7 +124,9 @@
- kubectl delete all -l ref=${CI_ENVIRONMENT_SLUG} - kubectl delete all -l ref=${CI_ENVIRONMENT_SLUG}
deploy_live: deploy_live:
image: lachlanevenson/k8s-kubectl:latest image:
name: lachlanevenson/k8s-kubectl:latest
entrypoint: ["/bin/sh", "-c"]
stage: deploy stage: deploy
environment: environment:
name: live name: live
......
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