16
16
id : auto-update-and-commit
17
17
run : make auto-update-and-commit
18
18
19
+ - name : Archive metadata artifacts
20
+ uses : actions/upload-artifact@v2
21
+ if : steps.auto-update-and-commit.outputs == '0'
22
+ with :
23
+ name : broken-docker-update
24
+ path : /tmp/generate-supported-versions
25
+ retention-days : 5
26
+ if-no-files-found : ignore
27
+
19
28
- name : cancelling
20
29
21
30
if : steps.auto-update-and-commit.outputs == '0'
37
46
38
47
- name : Check docker changes
39
48
id : docker_changes
40
- run : git diff-tree --no-commit-id --name-only -r HEAD nginx tpl | wc -l | tr -d ' '
49
+ run : git diff-tree --no-commit-id --name-only -r ${SHA:-HEAD} nginx tpl | wc -l | tr -d ' '
50
+ env :
51
+ SHA : ${{ github.sha }}
41
52
42
53
- name : Cleanup metadata artifacts
43
54
run : rm -rf docs/metadata/*
@@ -53,11 +64,11 @@ jobs:
53
64
54
65
- name : Log into registry
55
66
run : echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u ${{ github.actor }} --password-stdin
56
- if : github.ref == 'refs/heads/master ' && steps.docker_changes.output != '0'
67
+ if : github.ref == 'refs/heads/main ' && steps.docker_changes.output != '0'
57
68
58
69
- name : Push images
59
70
run : make push-${{ matrix.distro }}
60
- if : github.ref == 'refs/heads/master ' && steps.docker_changes.output != '0'
71
+ if : github.ref == 'refs/heads/main ' && steps.docker_changes.output != '0'
61
72
62
73
- name : Archive metadata artifacts
63
74
uses : actions/upload-artifact@v2
@@ -112,7 +123,7 @@ jobs:
112
123
113
124
- name : Push metadata
114
125
run : make auto-commit-metadata
115
- if : github.ref == 'refs/heads/master '
126
+ if : github.ref == 'refs/heads/main '
116
127
117
128
auto_tag :
118
129
name : Create Release
0 commit comments