Skip to content

Commit 8bc3f1a

Browse files
修改action (#5)
* 修改action
1 parent f805e98 commit 8bc3f1a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/edgewize-build.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
- name: Log into registry
2121
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ vars.DOCKER_USERNAME }} --password-stdin ${{ vars.IMAGE_REPO }}
2222

23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v1
25+
with:
26+
platforms: all
27+
28+
- name: Set up Docker buildx
29+
uses: docker/setup-buildx-action@v1
30+
2331
- name: Declare some variables
2432
shell: bash
2533
run: |
@@ -28,8 +36,4 @@ jobs:
2836
2937
- name: Run Build
3038
run: |
31-
docker build -f Dockerfile . --tag ${{ vars.IMAGE_REPO }}/edgewize/caddy:${{ env.branch }}-${{ env.suffix }}
32-
33-
- name: Run Push
34-
run: |
35-
docker push ${{ vars.IMAGE_REPO }}/edgewize/caddy:${{ env.branch }}-${{ env.suffix }}
39+
docker buildx build --platform linux/amd64,linux/arm64 --push -f Dockerfile . --tag ${{ vars.IMAGE_REPO }}/edgewize/caddy:${{ env.branch }}-${{ env.suffix }}

0 commit comments

Comments
 (0)