File tree 1 file changed +6
-41
lines changed
1 file changed +6
-41
lines changed Original file line number Diff line number Diff line change 1
- name : ci
1
+ name : Build
2
2
3
3
on :
4
- pull_request :
5
- push :
6
- branches : [main]
4
+ workflow_run :
5
+ workflows : [Tests]
6
+ types :
7
+ - completed
7
8
8
9
env :
9
10
REGISTRY : ghcr.io
10
11
IMAGE_NAME : ${{ github.repository }}
11
12
12
13
jobs :
13
- prepare :
14
+ build :
14
15
runs-on : ubuntu-latest
15
- steps :
16
- - uses : actions/checkout@v4
17
- - uses : docker/setup-buildx-action@v3
18
- - name : build ci image
19
- uses : docker/build-push-action@v5
20
- with :
21
- context : .
22
- tags : teufa:ci
23
- target : ci
24
- load : true
25
- cache-from : type=gha
26
- cache-to : type=gha,mode=max
27
- push : false
28
-
29
- tests :
30
- runs-on : ubuntu-latest
31
- needs : prepare
32
- container : teufa:ci
33
- services :
34
- postgres :
35
- image : postgres
36
- env :
37
- POSTGRES_PASSWORD : postgres
38
- options : >-
39
- --health-cmd pg_isready
40
- --health-interval 10s
41
- --health-timeout 5s
42
- --health-retries 5
43
- ports :
44
- - 5432:5432
45
- steps :
46
- - run : pytest
47
-
48
- build-push :
49
- runs-on : ubuntu-latest
50
- needs : tests
51
16
permissions :
52
17
contents : read
53
18
packages : write
You can’t perform that action at this time.
0 commit comments