chore: تنظیم Nexus برای NuGet و Docker offline
- Dockerfile: استفاده از Nexus Docker (194.5.195.53:32082) - NuGet.config: استفاده از Nexus NuGet با HTTP و allowInsecureConnections - workflow: حذف kubectl dependency، اضافه کردن 32082 به insecure-registries
This commit is contained in:
@@ -7,7 +7,11 @@ on:
|
||||
|
||||
env:
|
||||
REGISTRY: gitea-svc:3000
|
||||
<<<<<<< HEAD
|
||||
EXTERNAL_REGISTRY: 194.5.195.53:30080
|
||||
=======
|
||||
EXTERNAL_REGISTRY: git.kbs1.ir
|
||||
>>>>>>> production
|
||||
IMAGE_NAME: admin/frontoffice
|
||||
|
||||
jobs:
|
||||
@@ -21,19 +25,23 @@ jobs:
|
||||
HTTPS_PROXY: http://proxyuser:87zH26nbqT2@46.249.98.211:3128
|
||||
NO_PROXY: localhost,127.0.0.1,gitea-svc,45.149.79.127,194.5.195.53,10.0.0.0/8
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apk add --no-cache git curl
|
||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||
chmod +x kubectl
|
||||
mv kubectl /usr/local/bin/
|
||||
# - name: Install dependencies
|
||||
# run: |
|
||||
# apk add --no-cache git curl
|
||||
# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||
# chmod +x kubectl
|
||||
# mv kubectl /usr/local/bin/
|
||||
|
||||
- name: Start Docker daemon
|
||||
run: |
|
||||
mkdir -p /etc/docker
|
||||
cat > /etc/docker/daemon.json << 'DAEMON'
|
||||
{
|
||||
<<<<<<< HEAD
|
||||
"insecure-registries": ["194.5.195.53:30080", "gitea-svc:3000"]
|
||||
=======
|
||||
"insecure-registries": ["194.5.195.53:32082", "git.kbs1.ir", "gitea-svc:3000"]
|
||||
>>>>>>> production
|
||||
}
|
||||
DAEMON
|
||||
mkdir -p ~/.docker
|
||||
@@ -63,8 +71,6 @@ jobs:
|
||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} \
|
||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:prod \
|
||||
-t ${{ env.EXTERNAL_REGISTRY }}/${{ env.IMAGE_NAME }}:prod \
|
||||
--build-arg HTTP_PROXY=http://proxyuser:87zH26nbqT2@46.249.98.211:3128 \
|
||||
--build-arg HTTPS_PROXY=http://proxyuser:87zH26nbqT2@46.249.98.211:3128 \
|
||||
.
|
||||
|
||||
- name: Push to Registry
|
||||
|
||||
Reference in New Issue
Block a user