File tree Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Expand file tree Collapse file tree 1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Deploy addon
3
3
# yamllint disable-line rule:truthy
4
4
on :
5
5
workflow_call :
6
+ inputs :
7
+ version :
8
+ description : " The version to release"
9
+ required : true
10
+ type : string
6
11
secrets :
7
12
dispatch_token :
8
13
required : true
@@ -136,4 +141,38 @@ jobs:
136
141
# Disable layer caching
137
142
layers : false
138
143
139
- # Todo: Publish to main repository
144
+ - name : 🔑 GHCR Login
145
+ uses : redhat-actions/podman-login@v1
146
+ with :
147
+ registry : ghcr.io
148
+ username : ${{ github.repository_owner }}
149
+ password : ${{ secrets.GITHUB_TOKEN }}
150
+
151
+ - name : ⤴️ Push images
152
+ id : push-image
153
+ uses : redhat-actions/push-to-registry@v2
154
+ with :
155
+ image : ${{ steps.build-image.outputs.image }}
156
+ tags : ${{ steps.build-image.outputs.tags }}
157
+
158
+ publish-stable :
159
+ name : 📢 Publish to stable repository
160
+ runs-on : ubuntu-latest
161
+ needs :
162
+ - build-image
163
+ - information
164
+ environment : stable
165
+ steps :
166
+ - name : 📢 Dispatch Repository Updater update signal
167
+ uses : peter-evans/repository-dispatch@v3
168
+ with :
169
+ token : ${{ secrets.DISPATCH_TOKEN }}
170
+ repository : Poeschl-HomeAssistant-Addons/repository
171
+ event-type : update
172
+ client-payload : >
173
+ {
174
+ "addon": "${{ needs.information.outputs.slug }}",
175
+ "name": "${{ needs.information.outputs.name }}",
176
+ "repository": "${{ github.repository }}",
177
+ "version": "${{ github.event.inputs.version }}"
178
+ }
You can’t perform that action at this time.
0 commit comments