File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy
2
- on : [push, pull_request]
2
+ on :
3
+ push :
4
+ pull_request :
5
+ schedule :
6
+ - cron : " 0 6 * * *"
7
+ workflow_dispatch :
3
8
jobs :
4
9
build :
5
10
name : Build and Test Images
6
11
runs-on : ubuntu-latest
7
12
# NOTE (DP): Publish on develop and master, test on PRs against these
8
- # TODO(DP) Reinstate CRONed release builds to update stock apps regularly
9
13
if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/develop-6.x.x' || github.ref == 'refs/heads/master'|| github.base_ref == 'develop' || github.base_ref == 'develop-6.x.x' || github.base_ref == 'master'
10
14
steps :
11
15
- uses : actions/checkout@v4
46
50
sleep 35s
47
51
- name : Run tests
48
52
run : bats --tap exist-docker/src/test/bats/*.bats
53
+
54
+ - name : debug logs
55
+ if : failure()
56
+ run : docker logs exist-ci | grep 'ERROR'
57
+
58
+ - name : Copy logs on failure
59
+ if : failure()
60
+ run : |
61
+ echo "Copying logs..."
62
+ docker cp exist-ci:/exist/logs/exist.log ./exist.log
63
+
64
+ - name : Upload logs artifact
65
+ if : failure()
66
+ uses : actions/upload-artifact@v4
67
+ with :
68
+ name : exist-core-failed-log
69
+ path : exist.log
49
70
# NOTE (DP): When on master push release, when on develop push latest: Version is included automatically
50
71
# TODO (DP): Confirm that releases triggered from maven publish images with the non SNAPSHOT version
51
72
- name : Publish latest images
You can’t perform that action at this time.
0 commit comments