ci: configure registry auth via ~/.docker/config.json using gitea.token
Build and Push Image / build (push) Failing after 28s
Build and Push Image / build (push) Failing after 28s
This commit is contained in:
1 parent
bf229aeed2
commit
10650eee47
1 file changed
+9
-2
@@ -20,9 +20,16 @@ jobs:
|
|||||||
curl -fsSL https://depot.dev/install-cli.sh | sh
|
curl -fsSL https://depot.dev/install-cli.sh | sh
|
||||||
echo "$HOME/.depot/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.depot/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Login to Gitea Container Registry
|
- name: Configure Registry Auth
|
||||||
|
env:
|
||||||
|
REG_USER: ${{ gitea.actor }}
|
||||||
|
REG_PASS: ${{ gitea.token }}
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.site.latha.org -u "${{ github.actor }}" --password-stdin
|
mkdir -p "$HOME/.docker"
|
||||||
|
AUTH=$(printf '%s:%s' "$REG_USER" "$REG_PASS" | base64 -w 0)
|
||||||
|
cat > "$HOME/.docker/config.json" <<EOF
|
||||||
|
{"auths":{"git.site.latha.org":{"auth":"${AUTH}"}}}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build and Push with Depot
|
- name: Build and Push with Depot
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user