Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #3415

Closed
wants to merge 84 commits into from
Closed

merge #3415

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
e0826ac
build(deps): bump github.com/tigera/operator from 1.32.4 to 1.33.0
dependabot[bot] Feb 5, 2024
5b55d69
add a switch to control creating auto-pool feature based on SpiderSub…
Icarus9913 Feb 22, 2024
00f92bc
Support getting serviceCIDR from Containers.Args
ty-dc Feb 26, 2024
e483ecd
Merge pull request #3243 from ty-dc/serviceCIDR-from-args
Icarus9913 Feb 28, 2024
54a92bc
Rework spidercoordinator informer to update pod and service cidr
cyclinder Feb 26, 2024
4cb8f1d
cleanup todo
Icarus9913 Feb 26, 2024
b9cb9c3
Merge pull request #3257 from Icarus9913/wk/cleanup-todo
ty-dc Feb 29, 2024
3556e10
Merge pull request #3249 from cyclinder/rework_spidercoordinator_info…
cyclinder Feb 29, 2024
6408745
Add a low-k8s version of job to PR CI
ty-dc Mar 1, 2024
347a1a5
Update document format
ty-dc Mar 1, 2024
014a3bd
Merge pull request #3268 from ty-dc/robot-ci/low-k8s
Icarus9913 Mar 1, 2024
e0ccf2f
Merge pull request #3270 from ty-dc/docs/upgrade-x
weizhoublue Mar 1, 2024
e16d008
Fix panic in spidercoordinator informer
cyclinder Mar 1, 2024
7f1901c
Merge pull request #3269 from cyclinder/spidercoorinator/fix_panici_c…
ty-dc Mar 1, 2024
966400f
Free Disk Space for CI
ty-dc Mar 4, 2024
1d5c24d
Merge pull request #3278 from ty-dc/ci/free-disk-space
weizhoublue Mar 4, 2024
c5fc359
build(deps): bump github.com/containernetworking/plugins
dependabot[bot] Mar 4, 2024
04fedd2
spidercoordinator: Enhance the edge case
cyclinder Mar 5, 2024
6aa148d
Merge pull request #3284 from cyclinder/spidercoordinator/hander_patch
weizhoublue Mar 5, 2024
fbb5c93
spidermultusconfig: add missing filed for generateCoordinatorCNIConf
cyclinder Mar 4, 2024
0712541
Merge pull request #3283 from cyclinder/spidermultusconfig/tunePodRoutes
Icarus9913 Mar 5, 2024
76ab683
Spidercoordinator: Add kubeadm-config event to workQueue
cyclinder Mar 5, 2024
3f820f0
Merge pull request #3291 from cyclinder/spidercoordinator/sync_kubead…
cyclinder Mar 6, 2024
11aafc7
Modify the ipv6 mode to get the podDefaultRouteNIC so that the route …
ty-dc Mar 7, 2024
2db9778
Merge pull request #3302 from ty-dc/fix-ipv6-podDefaultRoute
weizhoublue Mar 11, 2024
8e086ea
Add e2e about multiple NICs
ty-dc Feb 29, 2024
2b5f4ae
Added docs for node NIC renaming
ty-dc Mar 8, 2024
2539b8e
build(deps): bump kubevirt.io/api from 1.0.0 to 1.2.0
dependabot[bot] Mar 11, 2024
167097c
Merge pull request #3308 from spidernet-io/dependabot/go_modules/kube…
weizhoublue Mar 12, 2024
f1b015f
Merge pull request #3280 from spidernet-io/dependabot/go_modules/gith…
weizhoublue Mar 12, 2024
82e0749
Merge pull request #3265 from ty-dc/e2e/new-8
cyclinder Mar 13, 2024
f0ce6ce
Merge pull request #3305 from ty-dc/docs/rename-nic-name
weizhoublue Mar 13, 2024
9027d25
build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0
dependabot[bot] Mar 13, 2024
4984f4c
Fixed the failure to obtain environment variables in build-image-base…
ty-dc Mar 18, 2024
39a4e3d
Merge pull request #3317 from spidernet-io/fix-bilud-images-base
weizhoublue Mar 19, 2024
d5395a3
supplement right AlreadyExist error return for IPPool/Subnet webhook
Icarus9913 Mar 19, 2024
0f5e89b
fix update codegenerator scripts
Icarus9913 Mar 20, 2024
2b2942a
docs: update installtion for spidercoordinator
cyclinder Mar 20, 2024
da3d6d9
Merge pull request #3325 from Icarus9913/fix/wk/code-generator
weizhoublue Mar 20, 2024
3ae7bf0
Merge pull request #3326 from cyclinder/docs/spidercoordinator1
cyclinder Mar 28, 2024
8b04727
chart: Support configure ifNames for rdmaSharedDevicePlugin
cyclinder Apr 1, 2024
1718e3a
Merge pull request #3322 from Icarus9913/fix/wk/webhook-error
cyclinder Apr 3, 2024
9bc0510
Merge pull request #3335 from cyclinder/rdma_plugin/chart1
weizhoublue Apr 7, 2024
39d497e
update maintainers
Icarus9913 Apr 7, 2024
0a14d8c
Merge pull request #3311 from spidernet-io/dependabot/go_modules/goog…
weizhoublue Apr 7, 2024
e023a12
add wildcard to match the IPPools
Icarus9913 Feb 29, 2024
b06dd65
Merge pull request #3340 from Icarus9913/maintainer
weizhoublue Apr 8, 2024
68d6660
Merge pull request #3241 from Icarus9913/feat/wk/autopool-switch
weizhoublue Apr 8, 2024
3b4bf92
Merge pull request #3262 from Icarus9913/feat/wk/wildcard
weizhoublue Apr 8, 2024
669d0cd
build(deps): bump go.opentelemetry.io/otel/metric from 1.24.0 to 1.25.0
dependabot[bot] Apr 8, 2024
7c10b4f
add panpan0000 as maintainer
panpan0000 Apr 8, 2024
ea7067b
Merge pull request #3344 from panpan0000/patch-1
weizhoublue Apr 8, 2024
25e3f3d
Fix: check if err occurs during e2e create IPPool step
ty-dc Apr 9, 2024
894a7eb
Update codecov-action to v4
ty-dc Apr 10, 2024
fc35435
added restart docker step when kind cluster cannot be created, and th…
ty-dc Apr 10, 2024
9f9b7a5
Merge pull request #3349 from ty-dc/update/codecov-action
weizhoublue Apr 11, 2024
5dea055
Merge pull request #3351 from ty-dc/fix-3338
weizhoublue Apr 11, 2024
a1a9268
Merge pull request #3346 from ty-dc/fix/3345
weizhoublue Apr 11, 2024
f7e0192
coordinator: ensure hijickRoute's gw is from hostIPRouteForPod
cyclinder Apr 15, 2024
9125833
Merge pull request #3358 from cyclinder/coordinator/fix_source_ip
weizhoublue Apr 16, 2024
2203c5a
bump cosign-release to v2.2.3
cyclinder Apr 16, 2024
dc8e9af
Merge pull request #3368 from cyclinder/ci/bump_cosign-release
weizhoublue Apr 16, 2024
a9fc861
feature: run a clean-up job when uninstalling
ty-dc Apr 7, 2024
d816199
Optimize IPPool multus affinity code comments
ty-dc Apr 18, 2024
6b2ab94
Merge pull request #3381 from ty-dc/optimize_code_comments
weizhoublue Apr 19, 2024
bc93f80
Added bot update readme release notes
ty-dc Apr 16, 2024
5826da5
build(deps): bump golang.org/x/net from 0.21.0 to 0.23.0
dependabot[bot] Apr 19, 2024
97fb6c6
Merge pull request #3339 from ty-dc/feature/uninstall
weizhoublue Apr 22, 2024
e39097a
Merge pull request #3377 from ty-dc/fix/release-node
weizhoublue Apr 22, 2024
d7e0037
robot updates the release version of the README file based on the rel…
ty-dc Apr 22, 2024
f8f0a14
build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0
dependabot[bot] Apr 22, 2024
6b9f69e
build(deps): bump actions/setup-python from 5.0.0 to 5.1.0
dependabot[bot] Apr 22, 2024
6d74809
fix: confirm that the SpiderSubnet AutoPool feature is really disabled
ty-dc Apr 12, 2024
decdd48
Merge pull request #3398 from spidernet-io/dependabot/github_actions/…
weizhoublue Apr 23, 2024
4d4e329
Merge pull request #3394 from spidernet-io/robot/update_doc-1713772831
weizhoublue Apr 23, 2024
98e439a
Add upgrade test for spiderpool
ty-dc Mar 14, 2024
7330e6a
Merge pull request #3323 from ty-dc/ci/upgrade_test
weizhoublue Apr 25, 2024
4c8ee12
Merge pull request #3401 from ty-dc/fix/3353
weizhoublue Apr 25, 2024
09366e2
fix upgrade test
ty-dc Apr 26, 2024
237b89d
Merge pull request #3409 from ty-dc/fix/upgrade-test
weizhoublue Apr 26, 2024
b2f4f23
Merge pull request #3343 from spidernet-io/dependabot/go_modules/go.o…
weizhoublue Apr 28, 2024
7cfb34b
Merge pull request #3384 from spidernet-io/dependabot/go_modules/gola…
weizhoublue Apr 28, 2024
5d7c5b0
Merge pull request #3397 from spidernet-io/dependabot/go_modules/gola…
weizhoublue Apr 28, 2024
a3935de
Merge pull request #3188 from spidernet-io/dependabot/go_modules/gith…
weizhoublue Apr 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/.spelling
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ ovs
kube-ovn
subent
roadmap
Icarus9913
iiiceoo
excludeIPs
replicaset
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Bug Report
description: Report a bug that you encountered
labels: ["kind/bug"]
assignees: ["Icarus9913", "cyclinder"]
assignees: ["cyclinder"]
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Feature Request
description: Provide supporting details for a feature in development Spiderpool
labels: ["kind/feature"]
assignees: ["Icarus9913", "cyclinder"]
assignees: ["cyclinder"]
body:
- type: markdown
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-diff-k8s-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "Icarus9913,ty-dc"
assignees: "ty-dc"

call_inputs_k8s:
# workflow_dispatch event flow triggered by running the input k8s version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-nightly-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ jobs:
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "Icarus9913,ty-dc"
assignees: "ty-dc"
12 changes: 12 additions & 0 deletions .github/workflows/auto-pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,15 @@ jobs:
ref: ${{ needs.get_ref.outputs.ref }}
e2e_labels: ${{ needs.get_ref.outputs.e2e_labels }}
secrets: inherit

call_e2e_dual_for_low_k8s:
needs: [call_build_ci_image, get_ref, call_release_chart]
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' && needs.get_ref.outputs.ipfamily_dual_e2e == 'true' }}
uses: ./.github/workflows/e2e-init.yaml
with:
ip_family: dual
image_tag: ${{ needs.call_build_ci_image.outputs.imageTag }}
ref: ${{ needs.get_ref.outputs.ref }}
e2e_labels: ${{ needs.get_ref.outputs.e2e_labels }}
k8s_version: v1.27.1
secrets: inherit
288 changes: 288 additions & 0 deletions .github/workflows/auto-upgrade-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,288 @@
name: Auto Upgrade Test

permissions: write-all

env:
CLUSTER_NAME: spider
E2E_TIME_OUT: 60m
KUBECONFIG_PATH: /home/runner/work/spiderpool/spiderpool/test/.cluster
on:
schedule:
- cron: "0 20 * * *"

workflow_dispatch:
inputs:
ref:
description: 'sha, tag, branch. also this is the version you will upgrade to.'
required: true
default: main
old_version:
description: 'specify your old version, for example: v0.9.2; if not set, the default version set will be run.'
required: false
type: string
default: v0.9.0
e2e_enabled:
description: 'run e2e test'
required: false
type: choice
default: "false"
options:
- "true"
- "false"

jobs:
get_ref:
runs-on: ubuntu-latest
outputs:
ref: ${{ env.RUN_REF }}
old_version: ${{ env.OLD_VERSION }}
e2e_enabled: ${{ env.RUN_E2E_ENABLED }}

steps:
- name: Get Ref
id: get_ref
run: |
if ${{ github.event_name == 'workflow_dispatch' }} ; then
echo "call by self workflow_dispatch"
echo "RUN_TAG=${{ github.event.inputs.ref }}" >> $GITHUB_ENV
echo "OLD_VERSION=${{ github.event.inputs.old_version }}" >> $GITHUB_ENV
if ${{ github.event.inputs.e2e_enabled == 'true' }}; then
echo "RUN_E2E_ENABLED=true" >> $GITHUB_ENV
else
echo "RUN_E2E_ENABLED=false" >> $GITHUB_ENV
fi
else
# schedule event
# use main sha for ci image tag
echo "trigger by schedule"
echo "RUN_TAG=main" >> $GITHUB_ENV
LATEST_RELEASE_VERISON=$(curl -s https://api.github.com/repos/spidernet-io/spiderpool/releases | grep '"tag_name":' | grep -Eo "v([0-9]+\.[0-9]+\.[0-9])" | sort -r | head -n 1)
echo "OLD_VERSION=${LATEST_RELEASE_VERISON}" >> $GITHUB_ENV
echo "RUN_E2E_ENABLED=true" >> $GITHUB_ENV
fi

- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
ref: ${{ env.RUN_TAG }}

- name: Result Ref
id: result
run: |
ref=$( git show -s --format='format:%H')
echo "RUN_REF=${ref}" >> $GITHUB_ENV

call_build_ci_image:
needs: [get_ref]
uses: ./.github/workflows/build-image-ci.yaml
with:
ref: ${{ needs.get_ref.outputs.ref }}
push: false
secrets: inherit

lint_chart_against_release_image:
needs: get_ref
uses: ./.github/workflows/call-lint-chart.yaml
with:
ref: ${{ needs.get_ref.outputs.ref }}
secrets: inherit

trivy_scan_images:
needs: [call_build_ci_image, get_ref]
uses: ./.github/workflows/trivy-scan-image.yaml
with:
image_tag: ${{ needs.call_build_ci_image.outputs.imageTag }}
ref: ${{ needs.get_ref.outputs.ref }}
secrets: inherit

run_upgrade_tests_on_release_version:
needs: [call_build_ci_image, get_ref]
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
ref: ${{ needs.get_ref.outputs.old_version }}

- name: Prepare
id: prepare
run: |
echo "ref: ${{ inputs.ref }} "
echo "===== image "
echo "ci image tag: ghcr.io/${{ github.repository }}/spiderpool-controller:${{ needs.get_ref.outputs.old_version }}"
TMP=` date +%m%d%H%M%S `
E2E_CLUSTER_NAME="spiderpool${TMP}"
echo "E2E_CLUSTER_NAME=${E2E_CLUSTER_NAME}" >> $GITHUB_ENV

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: 1.21.4

- name: Install Kind Bin
uses: helm/kind-action@v1.8.0
with:
install_only: true

- name: Install Tools
run: |
bash ./test/scripts/install-tools.sh

- name: Setup Kind Cluster on oldVersion ${{ needs.get_ref.outputs.old_version }}
uses: nick-invision/retry@v2
with:
timeout_minutes: 20
max_attempts: 3
on_retry_command: |
echo "debug"
systemctl status docker
journalctl -xeu docker
echo "restart docker before trying again"
systemctl restart docker
command: |
make e2e_init_calico -e E2E_CLUSTER_NAME=${{ env.E2E_CLUSTER_NAME }} \
-e E2E_SPIDERPOOL_TAG=${{ needs.get_ref.outputs.old_version }} \
-e PYROSCOPE_LOCAL_PORT=""

- name: backup kubeconfig from olderVersion ${{ needs.get_ref.outputs.old_version }}
run: |
cp -r ${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/config /tmp

- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
ref: ${{ needs.get_ref.outputs.ref }}
fetch-depth: 0

- name: Move kubeconfig from oldVersion ${{ needs.get_ref.outputs.old_version }} to the upgradeVersion ${{ needs.get_ref.outputs.ref }}
run: |
mkdir -p ${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/
cp -r /tmp/config ${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/config

- name: Download spiderpool-agent image
uses: actions/download-artifact@v3
with:
name: image-tar-spiderpool-agent
path: test/.download

- name: Download spiderpool-controller image
uses: actions/download-artifact@v3
with:
name: image-tar-spiderpool-controller
path: test/.download

- name: Load Images
run: |
TAR_FILES=` ls test/.download `
echo $TAR_FILES
for ITEM in $TAR_FILES ; do
IMAGE_NAME=${ITEM%*.tar}
echo ${IMAGE_NAME}
cat test/.download/${ITEM} | docker import - ${IMAGE_NAME}:${{ needs.call_build_ci_image.outputs.imageTag }}
done

- name: Upgrade to version ${{ needs.get_ref.outputs.ref }}
id: upgrade
continue-on-error: true
run: |
make upgrade_e2e_spiderpool -e E2E_SPIDERPOOL_TAG=${{ needs.call_build_ci_image.outputs.imageTag }} \
-e SPIDERPOOL_AGENT_IMAGE_NAME=spiderpool-agent-race \
-e SPIDERPOOL_CONTROLLER_IMAGE_NAME=spiderpool-controller-race \

- name: Run e2e Test on ${{ needs.get_ref.outputs.ref }}
id: run_e2e
continue-on-error: true
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' }}
run: |
RESULT=0
export KUBECONFIG=${{ env.KUBECONFIG_PATH }}/${{ env.E2E_CLUSTER_NAME }}/.kube/config
export DEBUG_ENV_PATH=${{ env.KUBECONFIG_PATH }}/../scripts/debugEnv.sh
RESULT=$(kubectl get po -A | grep "spiderpool" | grep -Ev "Running|Completed" | wc -l )
if ((RESULT!=0)) ; then
sleep 120
RESULT=$(kubectl get po -A | grep "spiderpool" | grep -Ev "Running|Completed" | wc -l )
fi
kubectl get po -A | grep "spiderpool"
kubectl get network-attachment-definitions.k8s.cni.cncf.io -A
if ((RESULT==0)) ; then
kubectl get po -l app=test-pod -oyaml
echo "after the upgrade is completed, restart the Pod. The Pod will run normally on the new version."
kubectl delete po -l app=test-pod
if kubectl wait --for=condition=ready -l app=test-pod --timeout=300s pod; then
kubectl get po -l app=test-pod -owide
kubectl get po -l app=test-pod -oyaml
echo "RUN_E2E_PASS=true" >> $GITHUB_ENV
else
kubectl get po -l app=test-pod -owide
kubectl describe po -l app=test-pod
KIND_CLUSTER_NAME=${{ env.E2E_CLUSTER_NAME }}
./${DEBUG_ENV_PATH} ${KUBECONFIG} "detail"
echo "RUN_E2E_PASS=false" >> $GITHUB_ENV
fi
else
KIND_CLUSTER_NAME=${{ env.E2E_CLUSTER_NAME }}
./${DEBUG_ENV_PATH} ${KUBECONFIG} "detail"
kubectl describe po -n kube-system -l app.kubernetes.io/instance=spiderpool
kubectl logs -n kube-system -l app.kubernetes.io/instance=spiderpool
echo "RUN_E2E_PASS=false" >> $GITHUB_ENV
fi

- name: Upload e2e log
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' }}
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ needs.get_ref.outputs.old_version }}-debuglog.txt
path: test/e2edebugLog.txt
retention-days: 7

- name: Upload e2e report
if: ${{ env.UPLOAD_E2E_REPORT == 'true' }}
uses: actions/upload-artifact@v3.1.3
with:
name: ${{ needs.get_ref.outputs.old_version }}-e2ereport.json
path: e2ereport.json
retention-days: 1

- name: Show e2e Result
if: ${{ needs.get_ref.outputs.e2e_enabled == 'true' }}
run: |
if ${{ env.RUN_E2E_PASS == 'true' }} ;then
exit 0
else
exit 1
fi

creat_issue:
runs-on: ubuntu-latest
needs: [run_upgrade_tests_on_release_version, trivy_scan_images]
if: ${{ always() && needs.run_upgrade_tests_on_release_version.result == 'failure' }}
steps:
- name: echo
run: |
echo ${{ github.repository }}
echo ${{ github.repository_owner }}
echo "TIMESTAMP=`date +%Y-%m-%d`" >> $GITHUB_ENV

- name: create an issue
uses: dacbd/create-issue-action@v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "upgrade CI ${{ ENV.TIMESTAMP }}: Failed"
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "ty-dc"
7 changes: 7 additions & 0 deletions .github/workflows/auto-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ jobs:
dest_tag: ${{ needs.get-tag.outputs.tag }}
secrets: inherit

update-release-version:
needs: [build-release-image, get-tag]
uses: ./.github/workflows/call-release-version.yaml
with:
dest_tag: ${{ needs.get-tag.outputs.tag }}
secrets: inherit

create-release:
needs: [release-chart, release-changelog, get-tag]
name: create release
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-image-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
id: tag-in-repositories
shell: bash
run: |
if docker buildx imagetools inspect ${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ steps.base_tag.outputs.tag }} &>/dev/null; then
if docker buildx imagetools inspect ${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.tag }} &>/dev/null; then
echo "exists=true" >> $GITHUB_ENV
echo "the target base image exist , no need to build it "
else
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
github-token: ${{ secrets.WELAN_PAT }}
platforms: ${{ env.BUILD_PLATFORM }}
tags: |
${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ steps.base_tag.outputs.tag }}
${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.tag }}

- name: Image Release Digest
if: ${{ env.exists == 'false' }}
Expand All @@ -126,7 +126,7 @@ jobs:
mkdir -p image-digest/
echo "## ${{ env.IMAGE_NAME }}" > image-digest/${{ env.IMAGE_NAME }}.txt
echo "" >> image-digest/${{ env.IMAGE_NAME }}.txt
echo "\`${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ steps.base_tag.outputs.tag }}@${{ steps.docker_build_release.outputs.digest }}\`" >> image-digest/${{ env.IMAGE_NAME }}.txt
echo "\`${{ env.ONLINE_REGISTER }}/${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:${{ env.tag }}@${{ steps.docker_build_release.outputs.digest }}\`" >> image-digest/${{ env.IMAGE_NAME }}.txt
echo "" >> image-digest/${{ env.IMAGE_NAME }}.txt

- name: Upload artifact digests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/call-lint-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

# https://github.com/actions/setup-python
- name: Set up Python
uses: actions/setup-python@v5.0.0
uses: actions/setup-python@v5.1.0
with:
python-version: 3.8
architecture: x64
Expand Down
Loading
Loading