astral-api/.woodpecker.yml
2024-12-15 20:43:00 +00:00

25 lines
760 B
YAML

steps:
- name: Tests
when:
- branch: [main,dev]
event: push
- event: [pull_request, pull_request_closed, tag]
image: mcr.microsoft.com/dotnet/sdk:8.0
commands:
- dotnet test
- name: Build and Publish Dev Docker Image
when:
- branch: dev
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