26 lines
799 B
YAML
26 lines
799 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
|
|
- 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
|