Add proxy configuration for apk and external packages

This commit is contained in:
masoud
2025-12-06 16:54:49 +00:00
parent b2b32cebae
commit d97fb7ff9b

View File

@@ -8,6 +8,9 @@ on:
env:
REGISTRY: 194.5.195.53:30080
IMAGE_NAME: admin/backoffice-bff
HTTP_PROXY: http://proxyuser:87zH26nbqT2@46.249.98.211:3128
HTTPS_PROXY: http://proxyuser:87zH26nbqT2@46.249.98.211:3128
NO_PROXY: 127.0.0.1,localhost,194.5.195.53,.svc,.cluster.local
jobs:
build:
@@ -22,6 +25,8 @@ jobs:
- name: Checkout code
run: |
git config --global http.proxy ""
git config --global https.proxy ""
git clone --depth 1 --branch kub-stage http://194.5.195.53:30080/admin/BackOffice.BFF.git .
git log -1 --format="%H %s"
@@ -39,8 +44,8 @@ jobs:
docker build -f BackOffice.BFF.WebApi/Dockerfile \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
--build-arg HTTP_PROXY=http://proxyuser:87zH26nbqT2@46.249.98.211:3128 \
--build-arg HTTPS_PROXY=http://proxyuser:87zH26nbqT2@46.249.98.211:3128 \
--build-arg HTTP_PROXY=${{ env.HTTP_PROXY }} \
--build-arg HTTPS_PROXY=${{ env.HTTPS_PROXY }} \
.
- name: Push to Registry