fix(ci): registry login via REGISTRY_TOKEN PAT
ci / build (map[dir:apps/booking name:booking]) (push) Failing after 6s
ci / deploy (push) Has been skipped
ci / typecheck (map[dir:apps/operator name:operator]) (push) Successful in 24s
ci / typecheck (map[dir:apps/booking name:booking]) (push) Successful in 24s
ci / typecheck (map[dir:apps/website name:website]) (push) Successful in 23s
ci / typecheck (map[dir:apps/portal name:portal]) (push) Successful in 28s
ci / typecheck (map[dir:services/platform-api name:platform-api]) (push) Successful in 23s
ci / test (push) Successful in 31s
ci / build (map[dir:apps/operator name:operator]) (push) Failing after 6s
ci / build (map[dir:apps/portal name:portal]) (push) Failing after 6s
ci / build (map[dir:services/platform-api name:platform-api]) (push) Failing after 6s
ci / build (map[dir:apps/booking name:booking]) (push) Failing after 6s
ci / deploy (push) Has been skipped
ci / typecheck (map[dir:apps/operator name:operator]) (push) Successful in 24s
ci / typecheck (map[dir:apps/booking name:booking]) (push) Successful in 24s
ci / typecheck (map[dir:apps/website name:website]) (push) Successful in 23s
ci / typecheck (map[dir:apps/portal name:portal]) (push) Successful in 28s
ci / typecheck (map[dir:services/platform-api name:platform-api]) (push) Successful in 23s
ci / test (push) Successful in 31s
ci / build (map[dir:apps/operator name:operator]) (push) Failing after 6s
ci / build (map[dir:apps/portal name:portal]) (push) Failing after 6s
ci / build (map[dir:services/platform-api name:platform-api]) (push) Failing after 6s
The per-job GITHUB_TOKEN is no longer accepted by the container registry's /v2/ basic-auth endpoint since the act_runner -> gitea/runner switch (login fails 'unauthorized' before push). Use a personal access token with package read+write scope, provided as the REGISTRY_TOKEN repo secret.
This commit is contained in:
@@ -69,8 +69,12 @@ jobs:
|
|||||||
- { name: operator, dir: apps/operator }
|
- { name: operator, dir: apps/operator }
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
# REGISTRY_TOKEN is a Gitea personal access token with package read+write
|
||||||
|
# scope (repo Settings → Actions → Secrets). The per-job GITHUB_TOKEN
|
||||||
|
# stopped being accepted by the registry's /v2/ basic-auth endpoint after
|
||||||
|
# the act_runner → gitea/runner switch, so registry pushes use a PAT.
|
||||||
- name: Registry login
|
- name: Registry login
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.lastcloud.io -u "${{ github.actor }}" --password-stdin
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.lastcloud.io -u "${{ github.actor }}" --password-stdin
|
||||||
- name: Build + push
|
- name: Build + push
|
||||||
run: |
|
run: |
|
||||||
IMG=git.lastcloud.io/ronnibaslund/dezky/${{ matrix.app.name }}
|
IMG=git.lastcloud.io/ronnibaslund/dezky/${{ matrix.app.name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user