Skip to content

Commit 44be990

Browse files
committed
Disable pilot and gateway image building
1 parent 3836d6d commit 44be990

File tree

1 file changed

+154
-154
lines changed

1 file changed

+154
-154
lines changed

.github/workflows/build-image-and-push.yaml

+154-154
Original file line numberDiff line numberDiff line change
@@ -73,157 +73,157 @@ jobs:
7373
docker buildx imagetools create $BUILT_IMAGE:$GITHUB_SHA --tag $image
7474
done
7575
76-
build-pilot-image:
77-
runs-on: ubuntu-latest
78-
environment:
79-
name: image-registry-pilot
80-
env:
81-
PILOT_IMAGE_REGISTRY: ${{ vars.IMAGE_REGISTRY || 'higress-registry.cn-hangzhou.cr.aliyuncs.com' }}
82-
PILOT_IMAGE_NAME: ${{ vars.PILOT_IMAGE_NAME || 'higress/pilot' }}
83-
steps:
84-
- name: "Checkout ${{ github.ref }}"
85-
uses: actions/checkout@v4
86-
with:
87-
fetch-depth: 1
88-
89-
- name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧
90-
uses: jlumbroso/free-disk-space@main
91-
with:
92-
tool-cache: false
93-
android: true
94-
dotnet: true
95-
haskell: true
96-
large-packages: true
97-
swap-storage: true
98-
99-
- name: "Setup Go"
100-
uses: actions/setup-go@v5
101-
with:
102-
go-version: 1.21.5
103-
104-
- name: Setup Golang Caches
105-
uses: actions/cache@v4
106-
with:
107-
path: |-
108-
~/.cache/go-build
109-
~/go/pkg/mod
110-
key: ${{ runner.os }}-go-${{ github.run_id }}
111-
restore-keys: ${{ runner.os }}-go
112-
113-
- name: Set up Docker Buildx
114-
uses: docker/setup-buildx-action@v1
115-
116-
- name: Cache Docker layers
117-
uses: actions/cache@v2
118-
with:
119-
path: /tmp/.buildx-cache
120-
key: ${{ runner.os }}-buildx-${{ github.sha }}
121-
restore-keys: |
122-
${{ runner.os }}-buildx-
123-
124-
- name: Calculate Docker metadata
125-
id: docker-meta
126-
uses: docker/metadata-action@v5
127-
with:
128-
images: |
129-
${{ env.PILOT_IMAGE_REGISTRY }}/${{ env.PILOT_IMAGE_NAME }}
130-
tags: |
131-
type=sha
132-
type=ref,event=tag
133-
type=semver,pattern={{version}}
134-
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
135-
136-
- name: Login to Docker Registry
137-
uses: docker/login-action@v3
138-
with:
139-
registry: ${{ env.PILOT_IMAGE_REGISTRY }}
140-
username: ${{ secrets.REGISTRY_USERNAME }}
141-
password: ${{ secrets.REGISTRY_PASSWORD }}
142-
143-
- name: Build Pilot-Discovery Image and Push
144-
run: |
145-
GOPROXY="https://proxy.golang.org,direct" make build-istio
146-
BUILT_IMAGE="higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/pilot"
147-
readarray -t IMAGES <<< "${{ steps.docker-meta.outputs.tags }}"
148-
for image in ${IMAGES[@]}; do
149-
echo "Image: $image"
150-
docker buildx imagetools create $BUILT_IMAGE:$GITHUB_SHA --tag $image
151-
done
152-
153-
154-
build-gateway-image:
155-
runs-on: ubuntu-latest
156-
environment:
157-
name: image-registry-pilot
158-
env:
159-
GATEWAY_IMAGE_REGISTRY: ${{ vars.IMAGE_REGISTRY || 'higress-registry.cn-hangzhou.cr.aliyuncs.com' }}
160-
GATEWAY_IMAGE_NAME: ${{ vars.GATEWAY_IMAGE_NAME || 'higress/gateway' }}
161-
steps:
162-
- name: "Checkout ${{ github.ref }}"
163-
uses: actions/checkout@v4
164-
with:
165-
fetch-depth: 1
166-
167-
- name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧
168-
uses: jlumbroso/free-disk-space@main
169-
with:
170-
tool-cache: false
171-
android: true
172-
dotnet: true
173-
haskell: true
174-
large-packages: true
175-
swap-storage: true
176-
177-
- name: "Setup Go"
178-
uses: actions/setup-go@v5
179-
with:
180-
go-version: 1.21.5
181-
182-
- name: Setup Golang Caches
183-
uses: actions/cache@v4
184-
with:
185-
path: |-
186-
~/.cache/go-build
187-
~/go/pkg/mod
188-
key: ${{ runner.os }}-go-${{ github.run_id }}
189-
restore-keys: ${{ runner.os }}-go
190-
191-
- name: Set up Docker Buildx
192-
uses: docker/setup-buildx-action@v1
193-
194-
- name: Cache Docker layers
195-
uses: actions/cache@v2
196-
with:
197-
path: /tmp/.buildx-cache
198-
key: ${{ runner.os }}-buildx-${{ github.sha }}
199-
restore-keys: |
200-
${{ runner.os }}-buildx-
201-
202-
- name: Calculate Docker metadata
203-
id: docker-meta
204-
uses: docker/metadata-action@v5
205-
with:
206-
images: |
207-
${{ env.GATEWAY_IMAGE_REGISTRY }}/${{ env.GATEWAY_IMAGE_NAME }}
208-
tags: |
209-
type=sha
210-
type=ref,event=tag
211-
type=semver,pattern={{version}}
212-
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
213-
214-
- name: Login to Docker Registry
215-
uses: docker/login-action@v3
216-
with:
217-
registry: ${{ env.GATEWAY_IMAGE_REGISTRY }}
218-
username: ${{ secrets.REGISTRY_USERNAME }}
219-
password: ${{ secrets.REGISTRY_PASSWORD }}
220-
221-
- name: Build Gateway Image and Push
222-
run: |
223-
GOPROXY="https://proxy.golang.org,direct" make build-gateway
224-
BUILT_IMAGE="higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/proxyv2"
225-
readarray -t IMAGES <<< "${{ steps.docker-meta.outputs.tags }}"
226-
for image in ${IMAGES[@]}; do
227-
echo "Image: $image"
228-
docker buildx imagetools create $BUILT_IMAGE:$GITHUB_SHA --tag $image
229-
done
76+
# build-pilot-image:
77+
# runs-on: ubuntu-latest
78+
# environment:
79+
# name: image-registry-pilot
80+
# env:
81+
# PILOT_IMAGE_REGISTRY: ${{ vars.IMAGE_REGISTRY || 'higress-registry.cn-hangzhou.cr.aliyuncs.com' }}
82+
# PILOT_IMAGE_NAME: ${{ vars.PILOT_IMAGE_NAME || 'higress/pilot' }}
83+
# steps:
84+
# - name: "Checkout ${{ github.ref }}"
85+
# uses: actions/checkout@v4
86+
# with:
87+
# fetch-depth: 1
88+
#
89+
# - name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧
90+
# uses: jlumbroso/free-disk-space@main
91+
# with:
92+
# tool-cache: false
93+
# android: true
94+
# dotnet: true
95+
# haskell: true
96+
# large-packages: true
97+
# swap-storage: true
98+
#
99+
# - name: "Setup Go"
100+
# uses: actions/setup-go@v5
101+
# with:
102+
# go-version: 1.21.5
103+
#
104+
# - name: Setup Golang Caches
105+
# uses: actions/cache@v4
106+
# with:
107+
# path: |-
108+
# ~/.cache/go-build
109+
# ~/go/pkg/mod
110+
# key: ${{ runner.os }}-go-${{ github.run_id }}
111+
# restore-keys: ${{ runner.os }}-go
112+
#
113+
# - name: Set up Docker Buildx
114+
# uses: docker/setup-buildx-action@v1
115+
#
116+
# - name: Cache Docker layers
117+
# uses: actions/cache@v2
118+
# with:
119+
# path: /tmp/.buildx-cache
120+
# key: ${{ runner.os }}-buildx-${{ github.sha }}
121+
# restore-keys: |
122+
# ${{ runner.os }}-buildx-
123+
#
124+
# - name: Calculate Docker metadata
125+
# id: docker-meta
126+
# uses: docker/metadata-action@v5
127+
# with:
128+
# images: |
129+
# ${{ env.PILOT_IMAGE_REGISTRY }}/${{ env.PILOT_IMAGE_NAME }}
130+
# tags: |
131+
# type=sha
132+
# type=ref,event=tag
133+
# type=semver,pattern={{version}}
134+
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
135+
#
136+
# - name: Login to Docker Registry
137+
# uses: docker/login-action@v3
138+
# with:
139+
# registry: ${{ env.PILOT_IMAGE_REGISTRY }}
140+
# username: ${{ secrets.REGISTRY_USERNAME }}
141+
# password: ${{ secrets.REGISTRY_PASSWORD }}
142+
#
143+
# - name: Build Pilot-Discovery Image and Push
144+
# run: |
145+
# GOPROXY="https://proxy.golang.org,direct" make build-istio
146+
# BUILT_IMAGE="higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/pilot"
147+
# readarray -t IMAGES <<< "${{ steps.docker-meta.outputs.tags }}"
148+
# for image in ${IMAGES[@]}; do
149+
# echo "Image: $image"
150+
# docker buildx imagetools create $BUILT_IMAGE:$GITHUB_SHA --tag $image
151+
# done
152+
#
153+
#
154+
# build-gateway-image:
155+
# runs-on: ubuntu-latest
156+
# environment:
157+
# name: image-registry-pilot
158+
# env:
159+
# GATEWAY_IMAGE_REGISTRY: ${{ vars.IMAGE_REGISTRY || 'higress-registry.cn-hangzhou.cr.aliyuncs.com' }}
160+
# GATEWAY_IMAGE_NAME: ${{ vars.GATEWAY_IMAGE_NAME || 'higress/gateway' }}
161+
# steps:
162+
# - name: "Checkout ${{ github.ref }}"
163+
# uses: actions/checkout@v4
164+
# with:
165+
# fetch-depth: 1
166+
#
167+
# - name: Free Up GitHub Actions Ubuntu Runner Disk Space 🔧
168+
# uses: jlumbroso/free-disk-space@main
169+
# with:
170+
# tool-cache: false
171+
# android: true
172+
# dotnet: true
173+
# haskell: true
174+
# large-packages: true
175+
# swap-storage: true
176+
#
177+
# - name: "Setup Go"
178+
# uses: actions/setup-go@v5
179+
# with:
180+
# go-version: 1.21.5
181+
#
182+
# - name: Setup Golang Caches
183+
# uses: actions/cache@v4
184+
# with:
185+
# path: |-
186+
# ~/.cache/go-build
187+
# ~/go/pkg/mod
188+
# key: ${{ runner.os }}-go-${{ github.run_id }}
189+
# restore-keys: ${{ runner.os }}-go
190+
#
191+
# - name: Set up Docker Buildx
192+
# uses: docker/setup-buildx-action@v1
193+
#
194+
# - name: Cache Docker layers
195+
# uses: actions/cache@v2
196+
# with:
197+
# path: /tmp/.buildx-cache
198+
# key: ${{ runner.os }}-buildx-${{ github.sha }}
199+
# restore-keys: |
200+
# ${{ runner.os }}-buildx-
201+
#
202+
# - name: Calculate Docker metadata
203+
# id: docker-meta
204+
# uses: docker/metadata-action@v5
205+
# with:
206+
# images: |
207+
# ${{ env.GATEWAY_IMAGE_REGISTRY }}/${{ env.GATEWAY_IMAGE_NAME }}
208+
# tags: |
209+
# type=sha
210+
# type=ref,event=tag
211+
# type=semver,pattern={{version}}
212+
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
213+
#
214+
# - name: Login to Docker Registry
215+
# uses: docker/login-action@v3
216+
# with:
217+
# registry: ${{ env.GATEWAY_IMAGE_REGISTRY }}
218+
# username: ${{ secrets.REGISTRY_USERNAME }}
219+
# password: ${{ secrets.REGISTRY_PASSWORD }}
220+
#
221+
# - name: Build Gateway Image and Push
222+
# run: |
223+
# GOPROXY="https://proxy.golang.org,direct" make build-gateway
224+
# BUILT_IMAGE="higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/proxyv2"
225+
# readarray -t IMAGES <<< "${{ steps.docker-meta.outputs.tags }}"
226+
# for image in ${IMAGES[@]}; do
227+
# echo "Image: $image"
228+
# docker buildx imagetools create $BUILT_IMAGE:$GITHUB_SHA --tag $image
229+
# done

0 commit comments

Comments
 (0)