Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mapas
SpCultura
Commits
92016c52
Commit
92016c52
authored
4 years ago
by
Rafael Chaves Freitas
Browse files
Options
Download
Email Patches
Plain Diff
habilita pipeline para prod
parent
508d6be9
No related merge requests found
Pipeline
#10093
passed with stage
in 23 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
28 deletions
+16
-28
.gitlab-ci.yml
.gitlab-ci.yml
+16
-28
No files found.
.gitlab-ci.yml
View file @
92016c52
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment