Mentions légales du service

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

feat(k8s): Build flyway image

parent 24f350b1
No related branches found
No related tags found
1 merge request!118Feature/change node selector
...@@ -3,6 +3,21 @@ include: ...@@ -3,6 +3,21 @@ include:
ref: master ref: master
file: gitlab/gitlab-ci-java-template.yml file: gitlab/gitlab-ci-java-template.yml
build-flyway:
image: docker:20.10.17
needs: ["build"]
stage: build
tags:
- caascad
variables:
K8S_REGISTRY_IMAGE_CRYPTO_FLYWAY: $K8S_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA-flyway
script:
- echo -n $K8S_REGISTRY_PASSWORD | docker login -u $K8S_REGISTRY_USER --password-stdin $K8S_REGISTRY
- docker build -t $K8S_REGISTRY_IMAGE_CRYPTO_FLYWAY -f Dockerfile.flyway .
- docker push $K8S_REGISTRY_IMAGE_CRYPTO_FLYWAY
# rules:
# - if: '$CI_COMMIT_BRANCH == "develop"'
build-docker: build-docker:
image: maven:3.8.3-adoptopenjdk-11 image: maven:3.8.3-adoptopenjdk-11
stage: build stage: build
......
FROM flyway/flyway:7.8
COPY ./src/main/resources/db/migration/*.sql /flyway/sql/
\ No newline at end of file
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