更新 .gitea/actions/action-docker-build-push/action.yml
Some checks failed
Some checks failed
This commit is contained in:
parent
457cac9de2
commit
a3e686a633
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user