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

chore: release image kubeblocks-dataprotection #4944

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/cicd-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ jobs:
DOCKERFILE_PATH: "./docker/Dockerfile-datascript"
secrets: inherit

check-dataprotection-image:
needs: trigger-mode
if: contains(needs.trigger-mode.outputs.trigger-mode, '[docker]')
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/kubeblocks-dataprotection"
BUILDX_PLATFORMS: "linux/amd64"
DOCKERFILE_PATH: "./docker/Dockerfile-dataprotection"
secrets: inherit

check-helm:
name: check helm
needs: trigger-mode
Expand Down Expand Up @@ -222,7 +232,7 @@ jobs:

pr-check:
name: make test
needs: [ trigger-mode, test-parallel, make-test, check-image, check-tools-image, check-datascript-image, check-helm, check-kbcli ]
needs: [ trigger-mode, test-parallel, make-test, check-image, check-tools-image, check-datascript-image, check-dataprotection-image, check-helm, check-kbcli ]
if: ${{ github.event.review.state == 'approved' && always() }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -259,6 +269,11 @@ jobs:
exit 1
fi

if [[ "${{ needs.check-dataprotection-image.result }}" == "failure" || "${{ needs.check-dataprotection-image.result }}" == "cancelled" ]]; then
echo "release dataprotection image fail"
exit 1
fi

- name: release helm check
run: |
if [[ "${{ needs.check-helm.result }}" == "failure" || "${{ needs.check-helm.result }}" == "cancelled" ]]; then
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cicd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ jobs:
DOCKERFILE_PATH: "./docker/Dockerfile-datascript"
secrets: inherit

check-dataprotection-image:
needs: trigger-mode
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[docker]') }}
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/kubeblocks-dataprotection"
BUILDX_PLATFORMS: "linux/amd64"
DOCKERFILE_PATH: "./docker/Dockerfile-dataprotection"
secrets: inherit

check-helm:
needs: trigger-mode
if: ${{ contains(needs.trigger-mode.outputs.trigger-mode, '[deploy]') }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ jobs:
DOCKERFILE_PATH: "./docker/Dockerfile-datascript"
secrets: inherit

release-dataprotection-image:
needs: image-tag
uses: apecloud/apecloud-cd/.github/workflows/[email protected]
with:
IMG: "apecloud/kubeblocks-dataprotection"
VERSION: "${{ needs.image-tag.outputs.tag-name }}"
APECD_REF: "v0.1.12"
DOCKERFILE_PATH: "./docker/Dockerfile-dataprotection"
secrets: inherit

send-message:
runs-on: ubuntu-latest
needs: [ release-image, release-tools-image, release-datascript-image]
Expand Down