Skip to content

Commit 275a7b3

Browse files
committed
Upgrade action version
1 parent 6804e1a commit 275a7b3

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.github/workflows/dockerhub.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Check out repository code
15-
uses: actions/checkout@v2
16-
- name: Push image to dockerhub
17-
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
22+
with:
23+
username: ${{ secrets.DOCKER_USERNAME }}
24+
password: ${{ secrets.DOCKER_PASSWORD }}
25+
26+
- name: Build and push Docker image
27+
uses: docker/build-push-action@v5
1828
with:
19-
path: ./docker
20-
username: ${{ secrets.DOCKERHUB_USERNAME }}
21-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
22-
repository: pgpointcloud/pointcloud
23-
tags: latest
29+
context: ./docker
30+
push: true
31+
tags: pgpointcloud/pointcloud:latest

0 commit comments

Comments
 (0)