Login to Forgejo token endpoint for buildx auth

This commit is contained in:
Bu5hm4nn
2026-03-23 14:45:43 +01:00
parent bfae1c44d7
commit 09b0214a95

View File

@@ -97,6 +97,8 @@ jobs:
http = true http = true
insecure = true insecure = true
EOF EOF
# Add hosts entry for Forgejo's token endpoint
echo "10.100.0.2 git.uncloud.vpn" >> /etc/hosts
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -112,6 +114,13 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }} password: ${{ secrets.REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
- name: Login to Forgejo token endpoint
uses: docker/login-action@v3
with:
registry: git.uncloud.vpn
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with: