Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzwt authored Nov 26, 2024
1 parent 7301e8c commit 74be600
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
Expand All @@ -38,13 +37,36 @@ jobs:
platforms: linux/amd64,linux/arm64
file: Dockerfile
tags: davyinsa/nginx
-
name: Build and push
- name: Build and push
id: docker_build_subpath
uses: docker/build-push-action@v2
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile-subpath
tags: davyinsa/nginx:subpath
tags: davyinsa/nginx:subpath
- name: Login to ALIYUN CR
uses: docker/login-action@v3
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIYUNCR_USERNAME }}
password: ${{ secrets.ALIYUNCR_PASSWORD }}
- name: Build and push to aliyun
id: docker_build_aliyun
uses: docker/build-push-action@v2
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile
tags: registry.cn-hangzhou.aliyuncs.com/davyin/nginx
- name: Build and push
id: docker_build_aliyun_subpath
uses: docker/build-push-action@v2
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile-subpath
tags: registry.cn-hangzhou.aliyuncs.com/davyin/nginx:subpath

0 comments on commit 74be600

Please sign in to comment.