File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
workflow_dispatch :
7
7
8
- env :
9
- DOCKER_BUILDKIT : 1
10
-
11
8
jobs :
12
9
docker :
13
10
runs-on : ubuntu-latest
14
11
steps :
15
12
- name : Pull repository
16
13
uses : actions/checkout@v4
17
- - name : Build the image
18
- run : docker build . --tag wolletd/wg-setup:latest
19
14
- name : Login to Docker Hub
20
15
uses : docker/login-action@v2
21
16
with :
22
17
username : ${{ secrets.DOCKERHUB_USERNAME }}
23
18
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
You can’t perform that action at this time.
0 commit comments