Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e44ca036 authored by Jamalac Orange's avatar Jamalac Orange
Browse files

feature(poc): build and publish image

parent 28be85f6
No related branches found
No related tags found
1 merge request!91Draft: feature(poc): postgres and submission pods and services
Pipeline #654475 passed
...@@ -17,13 +17,7 @@ build-v1: ...@@ -17,13 +17,7 @@ build-v1:
junit: junit:
- "**/target/*-reports/TEST-*.xml" - "**/target/*-reports/TEST-*.xml"
deploy-int: build:
stage: deploy script:
variables: # Build image and push to container registry
APP_VERSION: develop-SNAPSHOT - mvn spring-boot:build-image -Dmaven.test.skip=true -Dspring-boot.build-image.imageName=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA -Dspring-boot.build-image.publish=true
trigger:
project: stemcovid19/infrastructure/functional-zone/services/codegeneration/codegeneration-ansible
branch: master
strategy: depend
rules:
- if: '$CI_COMMIT_BRANCH == "develop"'
...@@ -257,6 +257,12 @@ ...@@ -257,6 +257,12 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration> <configuration>
<docker>
<publishRegistry>
<username>${env.CI_REGISTRY_USER}</username>
<password>${env.CI_REGISTRY_PASSWORD}</password>
</publishRegistry>
</docker>
<layers> <layers>
<enabled>true</enabled> <enabled>true</enabled>
</layers> </layers>
......
...@@ -23,7 +23,7 @@ spec: ...@@ -23,7 +23,7 @@ spec:
- containerPort: 8080 - containerPort: 8080
env: env:
- name: SPRING_DATASOURCE_URL - name: SPRING_DATASOURCE_URL
value: "jdbc:postgresql://postgres-db-service:5432/dev-submission-code-server-schema" value: "jdbc:postgresql://postgres-db-service:5432/submission"
- name: SPRING_DATASOURCE_USERNAME - name: SPRING_DATASOURCE_USERNAME
value: postgres value: postgres
- name: SPRING_DATASOURCE_PASSWORD - name: SPRING_DATASOURCE_PASSWORD
......
...@@ -25,7 +25,7 @@ spec: ...@@ -25,7 +25,7 @@ spec:
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
value: "1234" value: "1234"
- name: POSTGRES_DB - name: POSTGRES_DB
value: dev-submission-code-server-schema value: submission
- name: POSTGRES_USER - name: POSTGRES_USER
value: postgres value: postgres
--- ---
......
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