Pousser l'image P7 avec un PAT write:package (secret PACKAGE_TOKEN).
Le GITHUB_TOKEN du job se logue au registry mais le push est refusé (reqPackageAccess).
This commit is contained in:
parent
8723298d03
commit
f49eb89ee4
1 changed files with 2 additions and 1 deletions
3
.github/workflows/cd.yml
vendored
3
.github/workflows/cd.yml
vendored
|
|
@ -43,7 +43,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
REGISTRY="${GITHUB_SERVER_URL#https://}"
|
REGISTRY="${GITHUB_SERVER_URL#https://}"
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login "${REGISTRY}" -u "${GITHUB_ACTOR}" --password-stdin
|
# GITHUB_TOKEN : login OK mais push → unauthorized: reqPackageAccess
|
||||||
|
echo "${{ secrets.PACKAGE_TOKEN }}" | docker login "${REGISTRY}" -u "${GITHUB_ACTOR}" --password-stdin
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue