-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (61 loc) · 1.7 KB
/
pipeline-beyond-doubt.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
62
63
64
---
name: Pipeline beyond doubt
on:
pull_request:
branches: [main]
paths: # waiting for https://github.com/actions/runner/issues/2324
- .dx/**
- .env/**
- .github/**
- tools/**
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
pipeline:
name: Pipeline in ${{ matrix.environment.name }} env
strategy:
fail-fast: false
matrix:
environment:
- name: green
os: ubuntu-22.04
- name: amber
os: ubuntu-20.04
runs-on: ${{ matrix.environment.os }}
timeout-minutes: 10
permissions:
checks: write
packages: write
pull-requests: write
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/prepare
with:
name: ${{ matrix.environment.name }}
tools: python java docker
token: ${{ secrets.GITHUB_TOKEN }}
- run: >
ansible-playbook sources.yml -l dx:test
-e docker_registry=${{ env.REGISTRY }}
working-directory: .dx
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: >
ansible-playbook stack.yml
--skip-tags package
-e env_name=${{ matrix.environment.name }}
-e docker_registry=${{ env.REGISTRY }}
-e capture_stack=false
-e usage=toy
-e prefs=turing
working-directory: .dx
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: >
ansible-playbook pipeline.yml
-e env_name=${{ matrix.environment.name }}
-e docker_registry=${{ env.REGISTRY }}
working-directory: .dx