Skip to content

Commit 6c91b6b

Browse files
committed
Fix Docker image action
1 parent 24e0cb1 commit 6c91b6b

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/dockerhub.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@ name: "Docker image latest"
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77

88
jobs:
99
build:
1010
name: Docker image latest
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Check out repository code
14-
uses: actions/checkout@v2
15-
- name: Push image to dockerhub
16-
uses: docker/build-push-action@v1
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Log in to Docker Hub
20+
uses: docker/login-action@v3
1721
with:
18-
path: ./docker
1922
username: ${{ secrets.DOCKERHUB_USERNAME }}
2023
password: ${{ secrets.DOCKERHUB_PASSWORD }}
21-
repository: pgpointcloud/pointcloud
22-
tags: latest
24+
25+
- name: Build and push Docker image
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: ./docker
29+
push: true
30+
tags: pgpointcloud/pointcloud:latest

0 commit comments

Comments
 (0)