更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Gitea Actions Demo / build-docker (push) Failing after 24s
Cache Npx / task (push) Successful in 29s
Gitea Actions Demo / setup (push) Failing after 54s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped

This commit is contained in:
huanghs 2024-10-21 18:45:08 +08:00
parent 457cac9de2
commit a3e686a633

View File

@ -66,14 +66,7 @@ runs:
run: echo -e "\n[$(date +'%Y-%m-%d %H:%M:%S')] ⚙️ Set up Docker BuildX"
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3.7.1
env:
HTTP_PROXY: ${{ env.http_proxy }}
HTTPS_PROXY: ${{ env.https_proxy }}
NO_PROXY: ${{ env.no_proxy }}
http_proxy: ${{ env.http_proxy }}
https_proxy: ${{ env.https_proxy }}
no_proxy: ${{ env.no_proxy }}
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
env.http_proxy=${{ env.http_proxy }}
@ -131,13 +124,6 @@ runs:
- name: Build and push
uses: docker/build-push-action@v6
env:
HTTP_PROXY: ${{ env.http_proxy }}
HTTPS_PROXY: ${{ env.https_proxy }}
NO_PROXY: ${{ env.no_proxy }}
http_proxy: ${{ env.http_proxy }}
https_proxy: ${{ env.https_proxy }}
no_proxy: ${{ env.no_proxy }}
with:
context: ${{ inputs.context }}
file: ${{ inputs.file }}
@ -147,3 +133,6 @@ runs:
labels: ${{ inputs.labels }}
cache-from: type=local,src=/opt/docker-cache/.build-cache
cache-to: type=local,dest=/opt/docker-cache/.build-cache,mode=max
build-args: |
"http_proxy=${{ env.http_proxy }}"
"https_proxy=${{ env.http_proxy }}"