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.
32 lines
654 B
32 lines
654 B
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
# - name: key-setup
|
|
# image: ubuntu:latest
|
|
# environment:
|
|
# NGINX_KEY:
|
|
# from_secret: NGINX_KEY
|
|
# commands:
|
|
# - echo "$NGINX_KEY" > id_rsa
|
|
|
|
- name: docker-build
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/alexandre.agostinho/codefirst-docdeployer
|
|
username:
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
password:
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
when:
|
|
branch:
|
|
- master
|