Commit 92016c52 authored by Rafael Chaves Freitas's avatar Rafael Chaves Freitas

habilita pipeline para prod

parent 508d6be9
Pipeline #10093 passed with stage
in 23 seconds
......@@ -41,31 +41,19 @@ deploy to homolog:
- docker
# build to production:
# variables:
# GIT_SUBMODULE_STRATEGY: normal
# stage: build
# script:
# - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
# - docker pull mapasculturais/mapasculturais:v5.0.0-RC
# - docker build -t $RELEASE_IMAGE -f compose/production/Dockerfile .
# - docker tag $RELEASE_IMAGE "$CI_REGISTRY_IMAGE:latest"
# - docker push $RELEASE_IMAGE
# - docker push "$CI_REGISTRY_IMAGE:latest"
# only:
# - tags
# environment: production
# tags:
# - docker
# deploy to production:
# stage: deploy
# image: hacklab/kubectl:latest
# script:
# - echo ${kube_config} | base64 -d > ${KUBECONFIG}
# - kubectl -n mapasculturais-aldirblanc-prod --record deployment.apps/mapasculturais set image deployment.apps/mapasculturais mapasculturais=$RELEASE_IMAGE
# only:
# - tags
# environment: production
# tags:
# - docker
build to production:
variables:
GIT_SUBMODULE_STRATEGY: normal
stage: build
script:
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
- docker pull mapasculturais/mapasculturais:v5.0.0-RC
- docker build -t $RELEASE_IMAGE -f compose/production/Dockerfile .
- docker tag $RELEASE_IMAGE "$CI_REGISTRY_IMAGE:latest"
- docker push $RELEASE_IMAGE
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- tags
environment: production
tags:
- docker
\ No newline at end of file
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