-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 864 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Continuous build and release docker image
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- run: |
pip install tests/
pytest tests/
main:
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: timo-reymann/docker-semantic-release-gh-action@v1
with:
image: timoreymann/chrooted-ftp
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}