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.
37 lines
914 B
37 lines
914 B
kind: pipeline
|
|
type: docker
|
|
name: CI
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
- master
|
|
|
|
steps:
|
|
- name: build-server
|
|
image: dart:stable
|
|
commands:
|
|
- dart compile exe bin/server.dart -o bin/server
|
|
|
|
- name: docker-build
|
|
image: dart:stable
|
|
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-server]
|
|
|
|
- name: docker-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
|
|
depends_on: [docker-build] |