Skip to content

Commit fe95ab9

Browse files
committed
final time
Signed-off-by: Sarah Christoff <28318173+schristoff@users.noreply.github.com>
1 parent 02d0c09 commit fe95ab9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/build_pipelinesrelease_template.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
shell: bash
9393
Validate-integration_test:
9494
env:
95-
GHCR_IOGETPORTER_DOCKER_REGISTRY: https://ghcr.io/getporter
95+
GHCR_IOGETPORTER_DOCKER_REGISTRY: ${{inputs.registry}}
9696
GHCR_IOGETPORTER_DOCKER_USERNAME: getporterbot
9797
name: Integration Test
9898
needs:
@@ -140,7 +140,7 @@ jobs:
140140
run: go run mage.go ConfigureAgent UseXBuildBinaries
141141
- name: Run Smoke Tests
142142
run: mage -v TestSmoke
143-
Publish-publish_binaries:
143+
publish_binaries:
144144
name: Publish Binaries
145145
needs:
146146
- Validate-build
@@ -168,9 +168,9 @@ jobs:
168168
env:
169169
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
170170
run: mage PublishPorter PublishMixins
171-
Publish-publish_docker:
171+
publish-ghcr:
172172
env:
173-
DOCKER_REGISTRY: https://ghcr.io/getporter
173+
DOCKER_REGISTRY: https://ghcr.io
174174
DOCKER_USERNAME: getporterbot
175175
name: Publish Docker Images
176176
needs:
@@ -195,12 +195,11 @@ jobs:
195195
path: bin
196196
- name: Setup Bin
197197
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
200199
uses: docker/login-action@v3.0.0
201200
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 }}"
205204
- name: Publish Docker Images to ${{inputs.registry}}
206205
run: PORTER_REGISTRY=${{inputs.registry}} mage PublishImages

0 commit comments

Comments
 (0)