92
92
shell : bash
93
93
Validate-integration_test :
94
94
env :
95
- GHCR_IOGETPORTER_DOCKER_REGISTRY : https://ghcr.io/getporter
95
+ GHCR_IOGETPORTER_DOCKER_REGISTRY : ${{inputs.registry}}
96
96
GHCR_IOGETPORTER_DOCKER_USERNAME : getporterbot
97
97
name : Integration Test
98
98
needs :
@@ -140,7 +140,7 @@ jobs:
140
140
run : go run mage.go ConfigureAgent UseXBuildBinaries
141
141
- name : Run Smoke Tests
142
142
run : mage -v TestSmoke
143
- Publish- publish_binaries :
143
+ publish_binaries :
144
144
name : Publish Binaries
145
145
needs :
146
146
- Validate-build
@@ -168,9 +168,9 @@ jobs:
168
168
env :
169
169
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
170
170
run : mage PublishPorter PublishMixins
171
- Publish-publish_docker :
171
+ publish-ghcr :
172
172
env :
173
- DOCKER_REGISTRY : https://ghcr.io/getporter
173
+ DOCKER_REGISTRY : https://ghcr.io
174
174
DOCKER_USERNAME : getporterbot
175
175
name : Publish Docker Images
176
176
needs :
@@ -195,12 +195,11 @@ jobs:
195
195
path : bin
196
196
- name : Setup Bin
197
197
run : go run mage.go ConfigureAgent UseXBuildBinaries
198
- # Unable to determine registry '${{parameters.registry}}' type. The service connection was not found or the authentication type not supported.
199
- - name : Docker Login
198
+ - name : Login to Container Registry
200
199
uses : docker/login-action@v3.0.0
201
200
with :
202
- registry : " ${{ env.DOCKER_REGISTRY }}"
203
- username : " ${{ env.DOCKER_USERNAME }}"
204
- password : " ${{ secrets.DOCKER_PASSWORD }}"
201
+ registry : " ${{inputs.registry }}"
202
+ username : " ${{ github.actor }}"
203
+ password : " ${{ secrets.GITHUB_TOKEN }}"
205
204
- name : Publish Docker Images to ${{inputs.registry}}
206
205
run : PORTER_REGISTRY=${{inputs.registry}} mage PublishImages
0 commit comments