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.
36 lines
887 B
36 lines
887 B
kind: pipeline
|
|
type: docker
|
|
name: AdventOfCode
|
|
|
|
steps:
|
|
- name: init
|
|
image: busybox
|
|
commands:
|
|
- echo 'Starting build pipeline for AdventOfCode'
|
|
|
|
- name: test
|
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
|
commands:
|
|
- dotnet build AdventOfCode.Tests
|
|
- cp -a AdventOfCode.Tests/Data/. /drone/src/AdventOfCode.Tests/bin/Debug/net5.0/
|
|
- dotnet test AdventOfCode.Tests --logger "console;verbosity=detailed"
|
|
|
|
- name: build-advent-of-code
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: gitlab_username
|
|
password:
|
|
from_secret: gitlab_password
|
|
registry: registry.gitlab.com/sig14
|
|
repo: registry.gitlab.com/sig14/advent-of-code
|
|
dockerfile: AdventOfCode/Dockerfile
|
|
depends_on:
|
|
- test
|
|
|
|
- name: finish
|
|
image: busybox
|
|
commands:
|
|
- echo 'Finished container registry push for Advent of Code'
|
|
depends_on:
|
|
- build-advent-of-code |