Fix proxy password
This commit is contained in:
@@ -16,8 +16,8 @@ jobs:
|
|||||||
image: docker:latest
|
image: docker:latest
|
||||||
options: --privileged
|
options: --privileged
|
||||||
env:
|
env:
|
||||||
HTTP_PROXY: http://proxyuser:87zH26nbqT@46.249.98.211:3128
|
HTTP_PROXY: http://proxyuser:87zH26nbqT2@46.249.98.211:3128
|
||||||
HTTPS_PROXY: http://proxyuser:87zH26nbqT@46.249.98.211:3128
|
HTTPS_PROXY: http://proxyuser:87zH26nbqT2@46.249.98.211:3128
|
||||||
NO_PROXY: localhost,127.0.0.1,gitea-svc,194.5.195.53,10.0.0.0/8
|
NO_PROXY: localhost,127.0.0.1,gitea-svc,194.5.195.53,10.0.0.0/8
|
||||||
steps:
|
steps:
|
||||||
- name: Install git
|
- name: Install git
|
||||||
@@ -30,12 +30,12 @@ jobs:
|
|||||||
- name: Start Docker daemon with proxy
|
- name: Start Docker daemon with proxy
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.docker
|
mkdir -p ~/.docker
|
||||||
cat > ~/.docker/config.json << CONF
|
cat > ~/.docker/config.json << 'CONF'
|
||||||
{
|
{
|
||||||
"proxies": {
|
"proxies": {
|
||||||
"default": {
|
"default": {
|
||||||
"httpProxy": "http://proxyuser:87zH26nbqT@46.249.98.211:3128",
|
"httpProxy": "http://proxyuser:87zH26nbqT2@46.249.98.211:3128",
|
||||||
"httpsProxy": "http://proxyuser:87zH26nbqT@46.249.98.211:3128",
|
"httpsProxy": "http://proxyuser:87zH26nbqT2@46.249.98.211:3128",
|
||||||
"noProxy": "localhost,127.0.0.1,gitea-svc,194.5.195.53,10.0.0.0/8"
|
"noProxy": "localhost,127.0.0.1,gitea-svc,194.5.195.53,10.0.0.0/8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -51,8 +51,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} \
|
docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} \
|
||||||
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
|
||||||
--build-arg HTTP_PROXY=http://proxyuser:87zH26nbqT@46.249.98.211:3128 \
|
--build-arg HTTP_PROXY=http://proxyuser:87zH26nbqT2@46.249.98.211:3128 \
|
||||||
--build-arg HTTPS_PROXY=http://proxyuser:87zH26nbqT@46.249.98.211:3128 \
|
--build-arg HTTPS_PROXY=http://proxyuser:87zH26nbqT2@46.249.98.211:3128 \
|
||||||
.
|
.
|
||||||
|
|
||||||
- name: Push to Registry
|
- name: Push to Registry
|
||||||
|
|||||||
Reference in New Issue
Block a user