astral-api/.woodpecker.yml
Mike f89c0ae6d7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
Add docker and pipeline
2024-12-15 20:49:25 +00:00

22 lines
686 B
YAML

steps:
- name: Tests
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- dotnet test
- name: Build and Publish Dev Docker Image
when:
- branch: dev
event: [pull_request_closed]
image: woodpeckerci/plugin-docker-buildx:4.2
settings:
platforms: linux/amd64,linux/arm64
repo: ${CI_REG_HOST}:${CI_REG_PORT}/${CI_REPO_OWNER}/${CI_REPO_NAME}
tags: dev
registry: http://${CI_REG_HOST}:${CI_REG_PORT}
insecure: true
buildkit_config: "[registry.\"${CI_REG_HOST}:${CI_REG_PORT}\"]\n http = true\n insecure = true"
username:
from_secret: CI_REG_USER
password:
from_secret: CI_REG_TOKEN