Skip to content

Commit 15e81ff

Browse files
committed
fix: cluster build
1 parent 92845ba commit 15e81ff

File tree

13 files changed

+9
-5
lines changed

13 files changed

+9
-5
lines changed

.github/workflows/service-rs-build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
images: |
6060
${{ env.GHCR_REPO }}
6161
${{ env.ALIYUN_REPO }}
62+
labels: |
63+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
6264
6365
- name: Set up Docker Buildx
6466
uses: docker/setup-buildx-action@v3
@@ -190,6 +192,8 @@ jobs:
190192
type=raw,value=${{ steps.prepare.outputs.tag_name }},enable=true
191193
type=ref,event=tag
192194
type=sha
195+
labels: |
196+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
193197
env:
194198
DOCKER_METADATA_SHORT_SHA_LENGTH: 9
195199

@@ -282,10 +286,10 @@ jobs:
282286
ALIYUN_LATEST_CLUSTER_IMAGE: ${{ steps.prepare.outputs.aliyun_latest_cluster_image }}
283287
run: |
284288
# Update image in values.yaml if exists
285-
if [[ -f chart/values.yaml ]]; then
286-
echo "Updating image in chart/values.yaml"
287-
sed -i "s|repository:.*|repository: ${NEW_DOCKER_IMAGE%:*}|" chart/values.yaml
288-
sed -i "s|tag:.*|tag: \"${NEW_DOCKER_IMAGE##*:}\"|" chart/values.yaml
289+
if [[ -f charts/${MODULE_NAME}/values.yaml ]]; then
290+
echo "Updating image in charts/${MODULE_NAME}/values.yaml"
291+
sed -i "s|repository:.*|repository: ${NEW_DOCKER_IMAGE%:*}|" charts/${MODULE_NAME}/values.yaml
292+
sed -i "s|tag:.*|tag: \"${NEW_DOCKER_IMAGE##*:}\"|" charts/${MODULE_NAME}/values.yaml
289293
fi
290294
291295
# Build for GHCR
File renamed without changes.
File renamed without changes.

service-rs/httpgate/deploy/chart/templates/_helpers.tpl renamed to service-rs/httpgate/deploy/charts/httpgate/templates/_helpers.tpl

File renamed without changes.

service-rs/httpgate/deploy/chart/templates/clusterrole.yaml renamed to service-rs/httpgate/deploy/charts/httpgate/templates/clusterrole.yaml

File renamed without changes.

service-rs/httpgate/deploy/chart/templates/clusterrolebinding.yaml renamed to service-rs/httpgate/deploy/charts/httpgate/templates/clusterrolebinding.yaml

File renamed without changes.

service-rs/httpgate/deploy/chart/templates/configmap.yaml renamed to service-rs/httpgate/deploy/charts/httpgate/templates/configmap.yaml

File renamed without changes.

service-rs/httpgate/deploy/chart/templates/daemonset.yaml renamed to service-rs/httpgate/deploy/charts/httpgate/templates/daemonset.yaml

File renamed without changes.

service-rs/httpgate/deploy/chart/templates/ingress.yaml renamed to service-rs/httpgate/deploy/charts/httpgate/templates/ingress.yaml

File renamed without changes.

service-rs/httpgate/deploy/chart/templates/service.yaml renamed to service-rs/httpgate/deploy/charts/httpgate/templates/service.yaml

File renamed without changes.

0 commit comments

Comments
 (0)