-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.07 KB
/
on-master-push.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
35
36
37
38
39
40
41
42
on:
workflow_dispatch:
push:
branches:
- master
jobs:
checks:
uses: ./.github/workflows/checks.yml
run-tests:
uses: ./.github/workflows/testing.yml
publish-latest-docker-image:
needs: [checks, run-tests]
uses: ./.github/workflows/publish.yml
with:
image-tags: latest
secrets:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
release-please:
needs: [checks, run-tests]
uses: ./.github/workflows/create-release-pr.yaml
publish-production-docker-image:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/publish.yml
with:
image-tags: production,${{ needs.release-please.outputs.tag_name }}
secrets:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
publish-new-pypi-package:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/publish-to-pypi.yml
with:
version: ${{ needs.release-please.outputs.tag_name }}
secrets:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}