Login to Forgejo token endpoint for buildx auth
This commit is contained in:
@@ -97,6 +97,8 @@ jobs:
|
||||
http = true
|
||||
insecure = true
|
||||
EOF
|
||||
# Add hosts entry for Forgejo's token endpoint
|
||||
echo "10.100.0.2 git.uncloud.vpn" >> /etc/hosts
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
@@ -112,6 +114,13 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
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
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user