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/xaincrad-backend 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