Update release-docker.yml
This commit is contained in:
parent
e1ddd94200
commit
5859266ed1
12
.github/workflows/release-docker.yml
vendored
12
.github/workflows/release-docker.yml
vendored
@ -21,9 +21,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
@ -41,10 +43,11 @@ jobs:
|
||||
|
||||
- name: Build and push Docker image for main release
|
||||
if: github.event_name == 'release'
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/${{ matrix.IMAGE_NAME }}/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKER_USERNAME }}/${{ matrix.IMAGE_NAME }}:latest
|
||||
@ -52,10 +55,11 @@ jobs:
|
||||
|
||||
- name: Build and push Docker image for develop
|
||||
if: github.ref == 'refs/heads/develop'
|
||||
uses: docker/build-push-action@v4
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./docker/${{ matrix.IMAGE_NAME }}/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKER_USERNAME }}/${{ matrix.IMAGE_NAME }}:beta
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user