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: ...@@ -41,31 +41,19 @@ deploy to homolog:
- docker - docker
# build to production: build to production:
# variables: variables:
# GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
# stage: build stage: build
# script: script:
# - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
# - docker pull mapasculturais/mapasculturais:v5.0.0-RC - docker pull mapasculturais/mapasculturais:v5.0.0-RC
# - docker build -t $RELEASE_IMAGE -f compose/production/Dockerfile . - docker build -t $RELEASE_IMAGE -f compose/production/Dockerfile .
# - docker tag $RELEASE_IMAGE "$CI_REGISTRY_IMAGE:latest" - docker tag $RELEASE_IMAGE "$CI_REGISTRY_IMAGE:latest"
# - docker push $RELEASE_IMAGE - docker push $RELEASE_IMAGE
# - docker push "$CI_REGISTRY_IMAGE:latest" - docker push "$CI_REGISTRY_IMAGE:latest"
# only: only:
# - tags - tags
# environment: production environment: production
# tags: tags:
# - docker - docker
\ No newline at end of file
# 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
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