-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (53 loc) · 1.62 KB
/
ansible.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: ansible
on: [pull_request, workflow_dispatch]
jobs:
prejob:
uses: ./.github/workflows/set-output-workflow.yml
with:
workflow: ${{ github.workflow }}
secrets:
_WORKFLOW: ${{ secrets._CURRENT_TOOL }}
alpine-gnu:
needs: prejob
if: ${{ needs.prejob.outputs.workflow == github.workflow }}
uses: ./.github/workflows/build-alpine.yml
with:
workflow: ${{ github.workflow }}
toolset: gnu
version: 3.18.0
ubuntu-docker:
needs: prejob
if: ${{ needs.prejob.outputs.workflow == github.workflow }}
uses: ./.github/workflows/build-docker.yml
with:
workflow: ${{ github.workflow }}
test-ubuntu:
needs: alpine-gnu
uses: ./.github/workflows/test-ubuntu.yml
with:
workflow: ${{ github.workflow }}
artifact: build-gnu
test-alpine:
needs: alpine-gnu
uses: ./.github/workflows/test-alpine.yml
with:
workflow: ${{ github.workflow }}
artifact: build-gnu
test-ubuntu-docker:
needs: ubuntu-docker
uses: ./.github/workflows/test-docker.yml
with:
workflow: ${{ github.workflow }}
artifact: build-docker
release:
needs: [test-alpine, test-ubuntu, test-ubuntu-docker]
uses: ./.github/workflows/release.yml
with:
workflow: ${{ github.workflow }}
tool_version: '7.6.0'
prepare_body: |
bsdtar -Oxf ./build-docker/build-docker.tar.gz build-docker.md >> body.md
bsdtar -Oxf ./build-gnu/build-gnu.tar.gz build-gnu.md >> body.md
artifacts: ./build-docker/build-docker.tar.gz, ./build-gnu/build-gnu.tar.gz
secrets:
token: ${{ secrets.GITHUB_TOKEN }}