Skip to content

Commit 0c9284f

Browse files
authored
fix container-registry-auth in release publish task (#1467)
1 parent 182bc88 commit 0c9284f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

release/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ text editor.
1111

1212
1. Apply release Tekton resources
1313

14-
- [`publish-chains-release`](release-pipeline.yaml) - This task uses
15-
[ko](https://github.com/google/ko) to build all container images we release
16-
and generate the `release.yaml`
17-
18-
```sh
19-
kubectl apply -f release/publish.yaml
20-
```
21-
2214
- [`chains-release`](release-pipeline.yaml) - This is the pipeline that
2315
stitches everything together.
2416

release/publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ spec:
9797
# Login to the container registry
9898
DOCKER_CONFIG=$(cat ${CONTAINER_REGISTRY_CREDENTIALS} | \
9999
crane auth login -u ${CONTAINER_REGISTRY_USER} --password-stdin $(params.imageRegistry) 2>&1 | \
100-
sed 's,^.*logged in via \(.*\)$,\1,g')
100+
sed -n 's,^.*logged in via \(.*\)$,\1,p')
101101
102102
# Auth with account credentials for all regions.
103103
for region in ${REGIONS}
@@ -107,6 +107,7 @@ spec:
107107
done
108108
cp ${DOCKER_CONFIG} /workspace/docker-config.json
109109
110+
110111
- name: run-ko
111112
image: ghcr.io/tektoncd/plumbing/ko@sha256:990ec7fc709567e0d26fa40788a040b97598343d2fcb7252751316e34f31c4cc
112113
env:

0 commit comments

Comments
 (0)