File tree Expand file tree Collapse file tree 4 files changed +99
-0
lines changed Expand file tree Collapse file tree 4 files changed +99
-0
lines changed Original file line number Diff line number Diff line change @@ -205,3 +205,28 @@ jobs:
205
205
They will be retained for **up to 30 days**.
206
206
`
207
207
})
208
+
209
+ build-and-push-container :
210
+ runs-on : ubuntu-latest
211
+ permissions :
212
+ packages : write
213
+ steps :
214
+ - name : Checkout
215
+ uses : actions/checkout@v4
216
+ - name : Buildah build
217
+ id : build-image
218
+ uses : redhat-actions/buildah-build@v2
219
+ with :
220
+ image : ${{ github.event.repository.name }}
221
+ tags : ${{ github.sha }}
222
+ containerfiles : |
223
+ ./deploy/Containerfile
224
+ - name : Push To ghcr.io
225
+ id : push-to-ghcr
226
+ uses : redhat-actions/push-to-registry@v2
227
+ with :
228
+ image : ${{ steps.build-image.outputs.image }}
229
+ tags : ${{ steps.build-image.outputs.tags }}
230
+ username : ${{ github.actor }}
231
+ password : ${{ github.token }}
232
+ registry : ghcr.io/${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -123,3 +123,27 @@ jobs:
123
123
- name : Log artifact location
124
124
run : |
125
125
echo "Artifacts uploaded to: ${{ steps.artifact-upload.outputs.artifact-url }}"
126
+
127
+ build-and-publish-container :
128
+ needs : [unit-tests, integration-tests, e2e-tests]
129
+ runs-on : ubuntu-latest
130
+ steps :
131
+ - name : Checkout
132
+ uses : actions/checkout@v4
133
+ - name : Buildah build
134
+ id : build-image
135
+ uses : redhat-actions/buildah-build@v2
136
+ with :
137
+ image : ${{ github.event.repository.name }}
138
+ tags : nightly ${{ github.sha }}
139
+ containerfiles : |
140
+ ./deploy/Containerfile
141
+ - name : Push To ghcr.io
142
+ id : push-to-ghcr
143
+ uses : redhat-actions/push-to-registry@v2
144
+ with :
145
+ image : ${{ steps.build-image.outputs.image }}
146
+ tags : ${{ steps.build-image.outputs.tags }}
147
+ username : ${{ github.actor }}
148
+ password : ${{ github.token }}
149
+ registry : ghcr.io/${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -115,3 +115,28 @@ jobs:
115
115
username : ${{ secrets.PYPI_PUBLIC_USER }}
116
116
password : ${{ secrets.PYPI_PUBLIC_AUTH }}
117
117
whl : $(find dist -name '*.tar.gz')
118
+
119
+ build-and-publish-container :
120
+ needs : [unit-tests, integration-tests, e2e-tests]
121
+ runs-on : ubuntu-latest
122
+ steps :
123
+ - name : Checkout
124
+ uses : actions/checkout@v4
125
+ - name : Buildah build
126
+ id : build-image
127
+ uses : redhat-actions/buildah-build@v2
128
+ with :
129
+ image : ${{ github.event.repository.name }}
130
+ # TODO: Tag version
131
+ tags : latest ${{ github.sha }}
132
+ containerfiles : |
133
+ ./deploy/Containerfile
134
+ - name : Push To ghcr.io
135
+ id : push-to-ghcr
136
+ uses : redhat-actions/push-to-registry@v2
137
+ with :
138
+ image : ${{ steps.build-image.outputs.image }}
139
+ tags : ${{ steps.build-image.outputs.tags }}
140
+ username : ${{ github.actor }}
141
+ password : ${{ github.token }}
142
+ registry : ghcr.io/${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -114,3 +114,28 @@ jobs:
114
114
run : pip install tox
115
115
- name : Run end-to-end tests
116
116
run : tox -e test-e2e
117
+
118
+ build-and-publish-container :
119
+ needs : [unit-tests, integration-tests, e2e-tests]
120
+ runs-on : ubuntu-latest
121
+ steps :
122
+ - name : Checkout
123
+ uses : actions/checkout@v4
124
+ - name : Buildah build
125
+ id : build-image
126
+ uses : redhat-actions/buildah-build@v2
127
+ with :
128
+ image : ${{ github.event.repository.name }}
129
+ # TODO: Tag version
130
+ tags : latest stable ${{ github.sha }}
131
+ containerfiles : |
132
+ ./deploy/Containerfile
133
+ - name : Push To ghcr.io
134
+ id : push-to-ghcr
135
+ uses : redhat-actions/push-to-registry@v2
136
+ with :
137
+ image : ${{ steps.build-image.outputs.image }}
138
+ tags : ${{ steps.build-image.outputs.tags }}
139
+ username : ${{ github.actor }}
140
+ password : ${{ github.token }}
141
+ registry : ghcr.io/${{ github.repository_owner }}
You can’t perform that action at this time.
0 commit comments