File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,17 @@ jobs:
18
18
- name : Set up Docker Buildx
19
19
uses : docker/setup-buildx-action@v3
20
20
21
- # - name: Login to Docker Hub
22
- # uses: docker/login-action@v3
23
- # with:
24
- # username: ${{ secrets.DOCKERHUB_USERNAME }}
25
- # password: ${{ secrets.DOCKERHUB_TOKEN }}
21
+ - name : Login to Docker Hub
22
+ uses : docker/login-action@v3
23
+ with :
24
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
25
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
26
26
27
27
- name : Build and push
28
28
run : |
29
29
export VERSION=$(cat Dockerfile | grep 'wg_go_tag=' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
30
30
31
- docker buildx create \
32
- --name container \
33
- --driver=docker-container
31
+ make buildx_container
34
32
35
33
TAG=$VERSION make build_and_push
36
34
TAG=latest make build_and_push
Original file line number Diff line number Diff line change 1
- .PHONY : build_and_push
1
+ .PHONY : builx_container build_and_push
2
2
3
3
DOCKER_REGISTRY ?= masipcat/wireguard-go
4
4
5
+ builx_container :
6
+ docker buildx create \
7
+ --name container \
8
+ --driver=docker-container
9
+
5
10
build_and_push :
6
11
docker buildx build \
7
12
--tag ${DOCKER_REGISTRY} :${TAG} \
You can’t perform that action at this time.
0 commit comments