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
|
- name: Push image to Gitea registry
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
SHA=$(git rev-parse --short HEAD)
|
SHA=$(git rev-parse --short HEAD)
|
||||||
TOKEN=$(
|
TOKEN=$(
|
||||||
curl -fsS \
|
curl -fsS \
|
||||||
"https://gitea.coulomb.social/v2/token?service=container_registry&scope=repository:coulomb/inter-hub:push,pull" \
|
"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}'
|
| awk -F'"' '/token/{print $4}'
|
||||||
)
|
)
|
||||||
if [ -z "${TOKEN}" ]; then
|
if [ -z "${TOKEN}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user