30 lines
699 B
YAML
30 lines
699 B
YAML
|
|
when:
|
|
event: [push, tag]
|
|
branch: main
|
|
|
|
steps:
|
|
build:
|
|
image: python:3.11-slim
|
|
environment:
|
|
- DEBIAN_FRONTEND=noninteractive
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
commands:
|
|
- apt-get update && apt-get install -y make docker.io
|
|
- python -mpip install setuptools_scm
|
|
- make build
|
|
push:
|
|
image: python:3.11-slim
|
|
environment:
|
|
- DEBIAN_FRONTEND=noninteractive
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
commands:
|
|
- apt-get update && apt-get install -y make docker.io
|
|
- python -mpip install setuptools_scm
|
|
- make push
|
|
secrets: [ registry_password ]
|
|
when:
|
|
- event: tag
|