build-push: remove empty ${{ }} from the login step comment
This commit is contained in:
parent
ca003d60d9
commit
0f33e1e207
1 changed files with 3 additions and 2 deletions
|
|
@ -49,7 +49,6 @@ jobs:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: https://${{ vars.REGISTRY_HOST }}
|
REGISTRY: https://${{ vars.REGISTRY_HOST }}
|
||||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -111,6 +110,8 @@ jobs:
|
||||||
|
|
||||||
- name: Log in to the Forgejo registry
|
- name: Log in to the Forgejo registry
|
||||||
if: steps.image.outputs.changed == 'true'
|
if: steps.image.outputs.changed == 'true'
|
||||||
|
env:
|
||||||
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# NOT secrets.GITHUB_TOKEN -- Forgejo's per-job auto-injected token can
|
# NOT secrets.GITHUB_TOKEN -- Forgejo's per-job auto-injected token can
|
||||||
# never push to the container registry (a known Forgejo limitation,
|
# never push to the container registry (a known Forgejo limitation,
|
||||||
|
|
@ -130,7 +131,7 @@ jobs:
|
||||||
# credential that was in fact valid. Strip first, echo never.
|
# credential that was in fact valid. Strip first, echo never.
|
||||||
#
|
#
|
||||||
# The token also goes through the ENVIRONMENT rather than being
|
# The token also goes through the ENVIRONMENT rather than being
|
||||||
# interpolated into the script text. `${{ }}` is substituted before bash
|
# interpolated into the script text. An expression is substituted before bash
|
||||||
# parses the line, so a value containing a quote or newline would change
|
# parses the line, so a value containing a quote or newline would change
|
||||||
# the shape of the command itself rather than just its arguments.
|
# the shape of the command itself rather than just its arguments.
|
||||||
tok=$(printf '%s' "$REGISTRY_TOKEN" | tr -d ' \t\r\n')
|
tok=$(printf '%s' "$REGISTRY_TOKEN" | tr -d ' \t\r\n')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue