Skip to content

Commit ad672c7

Browse files
committed
build push image
1 parent c00677b commit ad672c7

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/push-docker.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
with:
2222
go-version: "1.22"
2323

24-
- name: Set up QEMU
25-
uses: docker/setup-qemu-action@v3
26-
27-
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
24+
# - name: Set up QEMU
25+
# uses: docker/setup-qemu-action@v3
26+
#
27+
# - name: Set up Docker Buildx
28+
# uses: docker/setup-buildx-action@v3
2929

3030
- name: Login to Registry
3131
uses: docker/login-action@v1
@@ -42,4 +42,4 @@ jobs:
4242
BASE_IMAGE_TAG: "debug"
4343
run: |
4444
echo "building images..."
45-
make build-push-multi-arch-image
45+
make build-push-image

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ linux-build:
164164
.PHONY: build-image
165165
build-image: docker-build
166166

167+
.PHONY: build-push-image
168+
build-push-image: docker-build
169+
@docker push ${IMG}
170+
167171
.PHONY: build-multi-arch
168172
build-multi-arch:
169173
@CGO_ENABLED=0 GOARCH=amd64 go build -o bin/api7-ingress-controller_amd64 -ldflags $(GO_LDFLAGS) cmd/main.go

0 commit comments

Comments
 (0)