@@ -23,11 +23,11 @@ jobs:
23
23
name : Generate Version List
24
24
runs-on : ubuntu-latest
25
25
steps :
26
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27
27
with :
28
28
persist-credentials : false
29
29
- id : shard
30
- uses : stackabletech/actions/shard@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
30
+ uses : stackabletech/actions/shard@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
31
31
with :
32
32
product-name : ${{ inputs.product-name }}
33
33
outputs :
@@ -48,23 +48,23 @@ jobs:
48
48
versions : ${{ fromJson(needs.generate_matrix.outputs.versions) }}
49
49
steps :
50
50
- name : Checkout Repository
51
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
51
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
52
52
with :
53
53
persist-credentials : false
54
54
55
55
- name : Free Disk Space
56
- uses : stackabletech/actions/free-disk-space@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
56
+ uses : stackabletech/actions/free-disk-space@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
57
57
58
58
- name : Build Product Image
59
59
id : build
60
- uses : stackabletech/actions/build-product-image@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
60
+ uses : stackabletech/actions/build-product-image@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
61
61
with :
62
62
product-name : ${{ inputs.product-name }}
63
63
product-version : ${{ matrix.versions }}
64
64
sdp-version : ${{ inputs.sdp-version }}
65
65
66
66
- name : Publish Container Image on oci.stackable.tech
67
- uses : stackabletech/actions/publish-image@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
67
+ uses : stackabletech/actions/publish-image@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
68
68
with :
69
69
image-registry-uri : oci.stackable.tech
70
70
image-registry-username : robot$${{ inputs.registry-namespace }}+github-action-build
@@ -85,12 +85,12 @@ jobs:
85
85
versions : ${{ fromJson(needs.generate_matrix.outputs.versions) }}
86
86
steps :
87
87
- name : Checkout Repository
88
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
88
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
89
89
with :
90
90
persist-credentials : false
91
91
92
92
- name : Publish and Sign Image Index Manifest to oci.stackable.tech
93
- uses : stackabletech/actions/publish-index-manifest@2d3d7ddad981ae09901d45a0f6bf30c2658b1b78 # 0.7.0
93
+ uses : stackabletech/actions/publish-index-manifest@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # 0.8.1
94
94
with :
95
95
image-registry-uri : oci.stackable.tech
96
96
image-registry-username : robot$${{ inputs.registry-namespace }}+github-action-build
@@ -102,44 +102,11 @@ jobs:
102
102
name : Failure Notification
103
103
needs : [generate_matrix, build, publish_manifests]
104
104
runs-on : ubuntu-latest
105
- if : failure()
105
+ if : failure() || github.run_attempt > 1
106
106
steps :
107
- - uses : slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
107
+ - name : Send Notification
108
+ uses : stackabletech/actions/send-slack-notification@55d2f9fcbcd7884ac929ea65fd6f069e7b7a49d2 # v0.8.1
108
109
with :
109
- channel-id : " C07UG6JH44F" # notifications-container-images
110
- payload : |
111
- {
112
- "text": "*${{ github.workflow }}* failed (attempt ${{ github.run_attempt }})",
113
- "attachments": [
114
- {
115
- "pretext": "See the details below for a summary of which job(s) failed.",
116
- "color": "#aa0000",
117
- "fields": [
118
- {
119
- "title": "Generate Version List",
120
- "short": true,
121
- "value": "${{ needs.generate_matrix.result }}"
122
- },
123
- {
124
- "title": "Build/Publish Image",
125
- "short": true,
126
- "value": "${{ needs.build.result }}"
127
- },
128
- {
129
- "title": "Build/Publish Manifests",
130
- "short": true,
131
- "value": "${{ needs.publish_manifests.result }}"
132
- }
133
- ],
134
- "actions": [
135
- {
136
- "type": "button",
137
- "text": "Go to workflow run",
138
- "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
139
- }
140
- ]
141
- }
142
- ]
143
- }
144
- env :
145
- SLACK_BOT_TOKEN : ${{ secrets.slack-token }}
110
+ publish-manifests-result : ${{ needs.publish_manifests.result }}
111
+ build-result : ${{ needs.build.result }}
112
+ slack-token : ${{ secrets.slack-token }}
0 commit comments