Skip to content

Commit 1f35750

Browse files
committed
ready
1 parent a72c33d commit 1f35750

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/ci.yaml

+6-8
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ jobs:
1818
- name: Set up Docker Buildx
1919
uses: docker/setup-buildx-action@v3
2020

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 }}
2626

2727
- name: Build and push
2828
run: |
2929
export VERSION=$(cat Dockerfile | grep 'wg_go_tag=' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
3030
31-
docker buildx create \
32-
--name container \
33-
--driver=docker-container
31+
make buildx_container
3432
3533
TAG=$VERSION make build_and_push
3634
TAG=latest make build_and_push

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
.PHONY: build_and_push
1+
.PHONY: builx_container build_and_push
22

33
DOCKER_REGISTRY ?= masipcat/wireguard-go
44

5+
builx_container:
6+
docker buildx create \
7+
--name container \
8+
--driver=docker-container
9+
510
build_and_push:
611
docker buildx build \
712
--tag ${DOCKER_REGISTRY}:${TAG} \

0 commit comments

Comments
 (0)