2023-01-18 11:02:14 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-07-26 12:29:08 +00:00
|
|
|
type: docker
|
|
|
|
name: test
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: python:3.11
|
|
|
|
commands:
|
|
|
|
- pip install poetry
|
|
|
|
- poetry run pytest --cov-report term-missing --cov=fediverse_blocklist_deploy tests
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2023-01-18 11:02:14 +00:00
|
|
|
type: exec
|
|
|
|
name: build
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
commands:
|
2023-07-26 10:43:34 +00:00
|
|
|
- docker build -t gcrkrause/fediverse-blocklist-deploy .
|
2023-01-18 11:02:14 +00:00
|
|
|
- name: push
|
|
|
|
environment:
|
|
|
|
USERNAME:
|
|
|
|
from_secret: docker-hub-user
|
|
|
|
PASSWORD:
|
|
|
|
from_secret: docker-hub-pw
|
|
|
|
commands:
|
|
|
|
- docker login -u $USERNAME -p $PASSWORD
|
2023-07-26 10:43:34 +00:00
|
|
|
- docker push gcrkrause/fediverse-blocklist-deploy
|
2023-01-18 11:02:14 +00:00
|
|
|
- docker image prune -a -f
|
2023-07-10 08:55:03 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
branch:
|
|
|
|
- main
|