Skip to content

Commit bb4676c

Browse files
authored
Merge pull request #123 from Jeongyong-park/patch-5
Update publish-docker.yml
2 parents 9c1b83f + e2213b4 commit bb4676c

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/publish-docker.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,42 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
with:
1717
submodules: 'recursive'
18+
1819
- name: Set up QEMU
19-
uses: docker/setup-qemu-action@v1
20+
uses: docker/setup-qemu-action@v3
21+
2022
- name: Set up Docker Buildx
21-
uses: docker/setup-buildx-action@v1
23+
uses: docker/setup-buildx-action@v3
24+
2225
- name: Login to DockerHub
23-
uses: docker/login-action@v1
26+
uses: docker/login-action@v3
2427
with:
2528
username: ${{ secrets.DOCKERHUB_USERNAME }}
2629
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
2731
- name: Docker meta
2832
id: docker_meta
29-
uses: crazy-max/ghaction-docker-meta@v1
33+
uses: docker/metadata-action@v5
3034
with:
3135
images: opendronemap/clusterodm
32-
tag-semver: |
33-
{{version}}
36+
tags: |
37+
type=semver,pattern={{version}}
38+
type=semver,pattern={{major}}.{{minor}}
39+
type=ref,event=branch,pattern=latest
40+
3441
- name: Build and push Docker image
3542
id: docker_build
36-
uses: docker/build-push-action@v2
43+
uses: docker/build-push-action@v6
3744
with:
45+
context: .
3846
file: ./Dockerfile
3947
platforms: linux/amd64,linux/arm64
4048
push: true
41-
tags: |
42-
${{ steps.docker_meta.outputs.tags }}
43-
opendronemap/clusterodm:latest
49+
tags: ${{ steps.docker_meta.outputs.tags }}
50+
labels: ${{ steps.docker_meta.outputs.labels }}
51+
4452
- name: Image digest
4553
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)