1
0
Fork 0

[CI] Forgejo Actions based release process (squash)

base64 -w0 to avoid wrapping when the doer name is long as it creates
a broken config.json
This commit is contained in:
Earl Warren 2023-06-15 22:45:00 +02:00
parent b4b25ca8d4
commit 9efdc27e49
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -93,7 +93,7 @@ runs:
- name: Login to the container registry - name: Login to the container registry
run: | run: |
BASE64_AUTH=`echo -n "${{ inputs.doer }}:${{ inputs.token }}" | base64` BASE64_AUTH=`echo -n "${{ inputs.doer }}:${{ inputs.token }}" | base64 -w0`
mkdir -p ~/.docker mkdir -p ~/.docker
echo "{\"auths\": {\"$CI_REGISTRY\": {\"auth\": \"$BASE64_AUTH\"}}}" > ~/.docker/config.json echo "{\"auths\": {\"$CI_REGISTRY\": {\"auth\": \"$BASE64_AUTH\"}}}" > ~/.docker/config.json
env: env: