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.

56 lines
1.4 KiB

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: build-advent-of-code
image: plugins/docker
settings:
username:
from_secret: gitea_user
password:
from_secret: gitea_password
registry: git.siglerdev.us/97waterpolo
repo: git.siglerdev.us/97waterpolo/advent-of-code
dockerfile: AdventOfCode/Dockerfile
depends_on:
- test
- name: deploy-containers
image: curlimages/curl
commands:
- "curl https://sgdvinfra001.prd.siglerdev.us:9443/api/stacks/webhooks/067a0369-369d-49a3-a66a-d942462b6118"
depends_on:
- build-advent-of-code
- name: finish
image: busybox
commands:
- echo 'Finished container registry push for Advent of Code'
depends_on:
- deploy-containers