Skip to content

Commit

Permalink
remove devfile-registry from release scripts and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuznyetsov committed Aug 29, 2024
1 parent 38e6d98 commit e02f2ff
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 40 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release-orchestrate-overall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ on:
phases:
description: '
# Comma-separated phases to perform.
#1: Code, MachineExec, Dashboard, Server, branches;
#2: E2E, PluginRegistry;
#3: DevfileRegistry;
#4: CheOperator;
# Default: 1,2,3,4
#1: Code, MachineExec, Server, branches;
#2: E2E, PluginRegistry, Dashboard;
#3: CheOperator;
# Default: 1,2,3
# Omit phases that have successfully run.
'
required: true
default: '1,2,3,4'
default: '1,2,3'
jobs:
pre_job:
runs-on: ubuntu-22.04
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/update-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ on:
che-incubator/kubernetes-image-puller-operator,
devfile/devworkspace-operator,
devfile/developer-images,
eclipse-che/che-dashboard,
eclipse-che/che-devfile-registry,
eclipse-che/che-dashboard,
eclipse-che/che-machine-exec,
eclipse-che/che-operator,
eclipse-che/che-plugin-registry,
Expand All @@ -47,7 +46,6 @@ jobs:
- { repo: "devfile/devworkspace-operator", user: "CHE_INCUBATOR_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 3 -f *Dockerfile --pr" }
- { repo: "devfile/developer-images", user: "CHE_INCUBATOR_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 3 -f *Dockerfile --pr" }
- { repo: "eclipse-che/che-dashboard", user: "CHE_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 3 -f *Dockerfile --pr" }
- { repo: "eclipse-che/che-devfile-registry", user: "CHE_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 3 -f *Dockerfile --pr" }
- { repo: "eclipse-che/che-machine-exec", user: "CHE_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 3 -f *Dockerfile --pr" }
- { repo: "eclipse-che/che-operator", user: "CHE_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 1 -f *Dockerfile --pr" }
- { repo: "eclipse-che/che-plugin-registry", user: "CHE_BOT_GITHUB_TOKEN", commandFlags: "-maxdepth 3 -f *Dockerfile --pr" }
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ The projects covered by this workflow release container images, NPM artifacts, o
| | [che-plugin-registry](https://github.com/eclipse-che/che-plugin-registry) | [![Release](https://github.com/eclipse-che/che-plugin-registry/actions/workflows/release.yml/badge.svg)](https://github.com/eclipse-che/che-plugin-registry/actions/workflows/release.yml) | [che-plugin-registry](https://quay.io/eclipse/che-plugin-registry) |
| | [che-dashboard](https://github.com/eclipse-che/che-dashboard) | [![release latest stable](https://github.com/eclipse-che/che-dashboard/actions/workflows/release.yml/badge.svg)](https://github.com/eclipse-che/che-dashboard/actions/workflows/release.yml) | [che-dashboard](https://quay.io/eclipse/che-dashboard) |
| | |
| **Phase 3** | [che-devfile-registry](https://github.com/eclipse-che/che-devfile-registry) | [![Release](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/release.yml/badge.svg)](https://github.com/eclipse-che/che-devfile-registry/actions/workflows/release.yml) | [che-devfile-registry](https://quay.io/eclipse/che-devfile-registry) |
| |
| **Phase 4** | [che-operator](https://github.com/eclipse-che/che-operator) | [![Release](https://github.com/eclipse-che/che-operator/actions/workflows/release.yml/badge.svg)](https://github.com/eclipse-che/che-operator/actions/workflows/release.yml) | [che-operator](https://quay.io/eclipse/che-operator) |
| **Phase 3** | [che-operator](https://github.com/eclipse-che/che-operator) | [![Release](https://github.com/eclipse-che/che-operator/actions/workflows/release.yml/badge.svg)](https://github.com/eclipse-che/che-operator/actions/workflows/release.yml) | [che-operator](https://quay.io/eclipse/che-operator) |

Che Operator requires PR checks and manual approvals. When everything has been verified, and the PRs generated in the previous step are merged, the following workflows will be triggered.

Expand Down
27 changes: 5 additions & 22 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ usage ()
# Comma-separated phases to perform.
#1: Code, Configbump, MachineExec, Server, devworkspace-generator, createBranches (kubernetes-image-puller);
#2: E2E, PluginRegistry, Dashboard;
#3: DevfileRegistry;
#4: Operator;
# Default: 1,2,3,4
#3: Operator;
# Default: 1,2,3
# Omit phases that have successfully run.
"
echo "Example: $0 --version 7.75.0 --phases 1,2,3,4"; echo
echo "Example: $0 --version 7.75.0 --phases 1,2,3"; echo
exit 1
}

Expand Down Expand Up @@ -139,12 +138,6 @@ releaseDashboard() {
invokeAction eclipse-che/che-dashboard "Release Che Dashboard" "3152474" "version=${CHE_VERSION}"
}

#################### PHASE 3 ####################

releaseDevfileRegistry() {
invokeAction eclipse-che/che-devfile-registry "Release Che Devfile Registry" "4191260" "version=${CHE_VERSION}"
}

#################### PHASE 4 ####################

releaseCheOperator() {
Expand Down Expand Up @@ -224,21 +217,11 @@ verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-plugin-registry
# shellcheck disable=SC2086
verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-dashboard:${CHE_VERSION} 60

#################### PHASE 3 ####################

# Release devfile registry (depends on plugin registry)
if [[ ${PHASES} == *"3"* ]]; then
releaseDevfileRegistry
fi
wait
# shellcheck disable=SC2086
verifyContainerExistsWithTimeout ${REGISTRY}/${ORGANIZATION}/che-devfile-registry:${CHE_VERSION} 60

#################### PHASE 4 ####################

# Create operator PRs (depends on devfile registry)
# Create operator PRs (depends on all phases above)
set +x
if [[ ${PHASES} == *"4"* ]]; then
if [[ ${PHASES} == *"3"* ]]; then
releaseCheOperator
fi
wait
Expand Down
1 change: 0 additions & 1 deletion updateBaseImagesInChe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ updateImagesInProject()
}

updateImagesInProject "eclipse-che/che-machine-exec" "main" "" &
updateImagesInProject "eclipse-che/che-devfile-registry" "main" "" &
updateImagesInProject "eclipse-che/che-plugin-registry" "main" "" &
updateImagesInProject "eclipse-che/che-dashboard" "main" "" &
updateImagesInProject "che-incubator/chectl" "main" "" &
Expand Down
1 change: 0 additions & 1 deletion utils/approvePRs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ che-incubator/kubernetes-image-puller-operator \
devfile/devworkspace-operator \
devfile/developer-images \
eclipse-che/che-dashboard \
eclipse-che/che-devfile-registry \
eclipse-che/che-machine-exec \
eclipse-che/che-operator \
eclipse-che/che-plugin-registry \
Expand Down
1 change: 0 additions & 1 deletion utils/check-branches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ REPO_LIST=(
che-incubator/configbump
che-incubator/kubernetes-image-puller
eclipse-che/che-dashboard
eclipse-che/che-devfile-registry
eclipse-che/che-machine-exec
eclipse-che/che-operator
eclipse-che/che-plugin-registry
Expand Down
1 change: 0 additions & 1 deletion utils/updateSecrets.chebot.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# che-bot secret
eclipse-che/che-devfile-registry
eclipse-che/che-operator
eclipse-che/che-plugin-registry
eclipse-che/che-release
Expand Down
1 change: 0 additions & 1 deletion utils/updateSecrets.dockerhub.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ che-dockerfiles/che-sidecar-kubernetes-tooling
che-dockerfiles/che-sidecar-openshift-connector
che-incubator/configbump
eclipse-che/che-dashboard
eclipse-che/che-devfile-registry
eclipse-che/che-machine-exec
eclipse-che/che-operator
eclipse-che/che-plugin-registry
Expand Down
1 change: 0 additions & 1 deletion utils/updateSecrets.quay.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ che-incubator/jetbrains-editor-images
che-incubator/kubernetes-image-puller
che-incubator/kubernetes-image-puller-operator
eclipse-che/che-dashboard
eclipse-che/che-devfile-registry
eclipse-che/che-machine-exec
eclipse-che/che-operator
eclipse-che/che-plugin-registry
Expand Down

0 comments on commit e02f2ff

Please sign in to comment.