codesmidgen/.woodpecker.yaml

61 lines
1.4 KiB
YAML
Raw Normal View History

steps:
lint:
image: python:3.11
commands:
- pip install hatch
- hatch run lint:run
test:
image: python:3.11
commands:
- pip install hatch
2023-07-28 06:14:10 +00:00
- cp codesmidgen.example.cfg codesmidgen.cfg
- hatch run tests:run
publish-package:
image: python:3.11
commands:
- pip install hatch
2023-07-28 05:23:49 +00:00
- hatch build
- hatch publish --repo $PIP_REPOSITORY --user $PIP_USERNAME --auth $PIP_TOKEN --no-prompt
secrets:
- pip_repository
- pip_username
- pip_token
when:
event: tag
2023-07-29 18:37:40 +00:00
nightly-image:
image: woodpeckerci/plugin-docker-buildx
2023-07-29 18:37:40 +00:00
privileged: true
settings:
2023-07-29 18:37:40 +00:00
dockerfile: Dockerfile.nightly
registry: git.snyman.info
username: $DOCKER_USERNAME
password: $DOCKER_TOKEN
repo: git.snyman.info/${CI_REPO_OWNER}/codesmidgen
tags:
- nightly
- ${CI_COMMIT_SHA:0:8}
secrets:
- docker_username
- docker_token
when:
- branch: master
event: push
release-image:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
dockerfile: Dockerfile.release
registry: git.snyman.info
username: $DOCKER_USERNAME
password: $DOCKER_TOKEN
repo: git.snyman.info/${CI_REPO_OWNER}/codesmidgen
tags:
- latest
- ${CI_COMMIT_TAG##v}
secrets:
- docker_username
- docker_token
when:
2023-07-29 18:37:40 +00:00
- branch: master
event: tag