Skip to content

Commit 00d612c

Browse files
committed
update docker build
1 parent 63518c1 commit 00d612c

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/dockerimage.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,29 @@ on:
55
branches: [ master ]
66
workflow_dispatch:
77

8-
env:
9-
DOCKER_BUILDKIT: 1
10-
118
jobs:
129
docker:
1310
runs-on: ubuntu-latest
1411
steps:
1512
- name: Pull repository
1613
uses: actions/checkout@v4
17-
- name: Build the image
18-
run: docker build . --tag wolletd/wg-setup:latest
1914
- name: Login to Docker Hub
2015
uses: docker/login-action@v2
2116
with:
2217
username: ${{ secrets.DOCKERHUB_USERNAME }}
2318
password: ${{ secrets.DOCKERHUB_TOKEN }}
24-
- name: Push the image
25-
run: docker push wolletd/wg-setup:latest
19+
- name: Login to ghcr.io
20+
uses: docker/login-action@v2
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Build and push the image
26+
uses: docker/build-push-action@v4
27+
with:
28+
context: .
29+
push: true
30+
provenance: false
31+
tags: |
32+
docker.io/wolletd/wg-setup:latest
33+
ghcr.io/wolletd/wg-setup:latest

0 commit comments

Comments
 (0)