Skip to content

Commit c548a28

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

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/dockerhub.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,29 @@ name: "Docker image latest"
33
on:
44
push:
55
branches:
6-
- master
6+
- master
7+
pull_request:
78

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

0 commit comments

Comments
 (0)