You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.7 KiB
58 lines
1.7 KiB
kind: pipeline
|
|
type: docker
|
|
name: CI
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
- master
|
|
|
|
steps:
|
|
- name: build-api-server
|
|
image: dart:stable
|
|
commands:
|
|
- dart pub get
|
|
- dart compile exe bin/server.dart -o bin/server
|
|
|
|
- name: docker-api-build
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/remi.arnal/passworld-api
|
|
username:
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
password:
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
depends_on: [build-api-server]
|
|
|
|
- name: docker-api-deployment
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/remi.arnal/passworld-api:latest
|
|
CONTAINERNAME: passworld-api
|
|
COMMAND: create
|
|
OVERWRITE: true
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_SERVER: db_accounts-remiarnal
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_USER:
|
|
from_secret: db_user
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_PASSWORD:
|
|
from_secret: db_password
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE:
|
|
from_secret: db_database
|
|
depends_on: [docker-api-build]
|
|
|
|
- name: db_creation
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: postgres:15-alpine
|
|
CONTAINERNAME: db_accounts
|
|
COMMAND: create
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
|
|
from_secret: db_database
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
|
|
from_secret: db_user
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
|
|
from_secret: db_password |