Skip to content

Commit c55673a

Browse files
authored
chore: update helm chart (#108)
1 parent 298943b commit c55673a

File tree

9 files changed

+11915
-100
lines changed

9 files changed

+11915
-100
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: push v2-dev on dockerhub
2+
on:
3+
release:
4+
types: [ published ]
5+
push:
6+
branches:
7+
- release-v2-dev
8+
workflow_dispatch:
9+
jobs:
10+
docker:
11+
runs-on: buildjet-2vcpu-ubuntu-2204
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Setup Go Env
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: "1.22"
22+
23+
# - name: Set up QEMU
24+
# uses: docker/setup-qemu-action@v3
25+
#
26+
# - name: Set up Docker Buildx
27+
# uses: docker/setup-buildx-action@v3
28+
29+
- name: Login to Registry
30+
uses: docker/login-action@v1
31+
with:
32+
registry: ${{ secrets.DOCKER_REGISTRY }}
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_PASSWORD }}
35+
36+
- name: Build push image
37+
env:
38+
TAG: dev
39+
ARCH: amd64
40+
ENABLE_PROXY: "false"
41+
BASE_IMAGE_TAG: "debug"
42+
run: |
43+
echo "building images..."
44+
make build-push-image

Makefile

Lines changed: 10 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
@@ -316,3 +320,9 @@ mv $(1) $(1)-$(3) ;\
316320
} ;\
317321
ln -sf $(1)-$(3) $(1)
318322
endef
323+
324+
helm-build-crds:
325+
@echo "build gateway-api standard crds"
326+
$(KUSTOMIZE) build github.com/kubernetes-sigs/gateway-api/config/crd\?ref=${GATEAY_API_VERSION} > charts/crds/gwapi-crds.yaml
327+
@echo "build apisix ic crds"
328+
$(KUSTOMIZE) build config/crd > charts/crds/apisixic-crds.yaml

0 commit comments

Comments
 (0)