generated from coulomb/repo-seed
fix(ci): use registry token secret for image publish
Some checks failed
Build and Deploy / build-push-deploy (push) Failing after 38s
Some checks failed
Build and Deploy / build-push-deploy (push) Failing after 38s
This commit is contained in:
@@ -26,14 +26,14 @@ jobs:
|
||||
- name: Push image to Gitea registry
|
||||
shell: bash -l {0}
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
SHA=$(git rev-parse --short HEAD)
|
||||
TOKEN=$(
|
||||
curl -fsS \
|
||||
"https://gitea.coulomb.social/v2/token?service=container_registry&scope=repository:coulomb/inter-hub:push,pull" \
|
||||
-u "tegwick:${GITEA_TOKEN}" \
|
||||
-u "tegwick:${REGISTRY_TOKEN}" \
|
||||
| awk -F'"' '/token/{print $4}'
|
||||
)
|
||||
if [ -z "${TOKEN}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user