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