Standardize on git.uncloud.vpn for registry
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
REGISTRY: ${{ vars.REGISTRY || '10.100.0.2:3000' }}
|
||||
REGISTRY: ${{ vars.REGISTRY || 'git.uncloud.vpn' }}
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
@@ -93,15 +93,10 @@ jobs:
|
||||
run: |
|
||||
mkdir -p /tmp/buildkit
|
||||
cat > /tmp/buildkit/buildkitd.toml << 'EOF'
|
||||
[registry."10.100.0.2:3000"]
|
||||
http = true
|
||||
insecure = true
|
||||
[registry."git.uncloud.vpn"]
|
||||
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
|
||||
@@ -117,13 +112,6 @@ 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