Skip to content

Commit fb04cf4

Browse files
committed
update docker build
1 parent 63518c1 commit fb04cf4

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/dockerimage.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,28 @@ 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+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Build and push the image
25+
uses: docker/build-push-action@v4
26+
with:
27+
context: .
28+
push: true
29+
provenance: false
30+
tags: |
31+
docker.io/wolletd/wg-setup:latest
32+
ghcr.io/wolletd/wg-setup:latest

0 commit comments

Comments
 (0)