Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csv-catalog-downloader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
services
csv-catalog-downloader
Commits
713107d8
There was a problem fetching the pipeline summary.
Commit
713107d8
authored
6 years ago
by
Alessandro Cerioni
Browse files
Options
Downloads
Patches
Plain Diff
Adding .gitlab-ci.yml + building/pushing/pulling Docker image.
parent
f8a9afe3
Branches
Branches containing commit
No related tags found
Loading
Pipeline
#
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+63
-0
63 additions, 0 deletions
.gitlab-ci.yml
docker-compose.yml
+5
-7
5 additions, 7 deletions
docker-compose.yml
with
68 additions
and
7 deletions
.gitlab-ci.yml
0 → 100644
+
63
−
0
View file @
713107d8
stages
:
-
build
-
deploy
build_development
:
stage
:
build
only
:
-
development
script
:
-
export TAG=dev
-
export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4000
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=./catalog-cache-${TAG}
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=./config.yaml
-
docker-compose build
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose push
build_release
:
stage
:
build
only
:
-
tags
except
:
-
/^(?!master).+@/
script
:
-
export TAG=$(echo $CI_COMMIT_TAG | sed 's/v//g')
-
export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=./catalog-cache-${TAG}
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=./config.yaml
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose push
deploy_development
:
stage
:
deploy
only
:
-
development
script
:
-
export TAG=dev
-
export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=./catalog-cache-${TAG}
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=./config.yaml
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker-compose pull
-
docker-compose --project-name csv-catalog-download-service-${TAG} up -d --force-recreate
environment
:
name
:
development
deploy_staging
:
stage
:
deploy
only
:
-
development
when
:
manual
script
:
-
export TAG=staging
-
export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4140
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=./catalog-cache-${TAG}
-
export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=./config.yaml
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
TAG=dev docker-compose pull
-
docker tag $CI_REGISTRY/refonte-data/service-catalog:dev $CI_REGISTRY/refonte-data/service-catalog:${TAG}
-
docker push $CI_REGISTRY/refonte-data/service-catalog:${TAG}
-
docker-compose --project-name csv-catalog-download-service-${TAG} up -d --force-recreate
environment
:
name
:
staging
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
5
−
7
View file @
713107d8
version
:
"
3.0"
version
:
"
3.0"
services
:
services
:
catalog
:
csv-
catalog
-download
:
build
:
.
build
:
.
image
:
registry.alpha.grandlyon.com/refonte-data/content-indexer:${TAG}
ports
:
ports
:
-
8000
:8000
-
${CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT}
:8000
volumes
:
volumes
:
-
./config.yaml:/app/config.yaml
-
${CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH}:/app/config.yaml
-
catalog-cache:/app/cache
-
${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}:/app/cache
volumes
:
catalog-cache
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment