Skip to content

Commit 9d9eb9a

Browse files
committed
remove useless
1 parent ad672c7 commit 9d9eb9a

File tree

4 files changed

+75
-49
lines changed

4 files changed

+75
-49
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: push 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

.github/workflows/push-docker.yaml

Lines changed: 30 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,35 @@
11
name: push on dockerhub
2-
on:
2+
on:
33
release:
4-
types: [ published ]
5-
push:
6-
branches:
7-
- release-v2-dev
8-
- chore/helm
9-
workflow_dispatch:
4+
types: [published]
5+
106
jobs:
117
docker:
12-
runs-on: buildjet-2vcpu-ubuntu-2204
8+
runs-on: ubuntu-20.04
139
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
with:
17-
submodules: recursive
18-
19-
- name: Setup Go Env
20-
uses: actions/setup-go@v4
21-
with:
22-
go-version: "1.22"
23-
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
29-
30-
- name: Login to Registry
31-
uses: docker/login-action@v1
32-
with:
33-
registry: ${{ secrets.DOCKER_REGISTRY }}
34-
username: ${{ secrets.DOCKER_USERNAME }}
35-
password: ${{ secrets.DOCKER_PASSWORD }}
36-
37-
- name: Build push image
38-
env:
39-
TAG: dev
40-
ARCH: amd64
41-
ENABLE_PROXY: "false"
42-
BASE_IMAGE_TAG: "debug"
43-
run: |
44-
echo "building images..."
45-
make build-push-image
10+
-
11+
name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.ref }} # Use the reference to the release
15+
-
16+
name: Set up QEMU
17+
uses: docker/setup-qemu-action@v3
18+
-
19+
name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
-
22+
name: Login to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ${{ secrets.DOCKER_REGISTRY }}
26+
username: ${{ secrets.DOCKER_USERNAME }}
27+
password: ${{ secrets.DOCKER_PASSWORD }}
28+
-
29+
name: Build and push
30+
uses: docker/build-push-action@v5
31+
with:
32+
context: .
33+
platforms: linux/amd64,linux/arm64
34+
push: true
35+
tags: '${{ github.event.release.tag_name }}' # Use the release tag as the image tag

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ mv $(1) $(1)-$(3) ;\
321321
ln -sf $(1)-$(3) $(1)
322322
endef
323323

324-
charts-crds:
324+
helm-build-crds:
325325
@echo "build gateway-api standard crds"
326326
$(KUSTOMIZE) build github.com/kubernetes-sigs/gateway-api/config/crd\?ref=${GATEAY_API_VERSION} > charts/crds/gwapi-crds.yaml
327327
@echo "build apisix ic crds"

charts/Chart.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,3 @@ maintainers:
1919
# ref: https://artifacthub.io/docs/topics/annotations/helm/
2020
annotations:
2121
artifacthub.io/prerelease: "true"
22-
23-
dependencies:
24-
- name: api7ee3
25-
version: ">= 0.17.12"
26-
repository: "https://charts.api7.ai"
27-
- name: gateway
28-
version: ">= 0.2.14"
29-
repository: "https://charts.api7.ai"

0 commit comments

Comments
 (0)