forked from labring/sealos
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add latest cluster image and update deploy docs. (labring#3484)
* update sealos cloud deploy docs. * fix tls gen and add latest cluster image.
- Loading branch information
Showing
6 changed files
with
62 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,10 +210,12 @@ jobs: | |
- name: Prepare | ||
id: prepare | ||
run: | | ||
bash ./scripts/resolve-tag-image.sh "${{ inputs.push_image }}" "${{ steps.check_tag.outputs.isTag }}" "${{ inputs.push_image_tag }}" | ||
tag_name=$(bash ./scripts/resolve-tag-image.sh "${{ inputs.push_image }}" "${{ steps.check_tag.outputs.isTag }}" "${{ inputs.push_image_tag }}") | ||
echo old_docker_repo=ghcr.io/labring/sealos-${{ matrix.module.name }}-controller >> $GITHUB_OUTPUT | ||
echo new_docker_repo=ghcr.io/${{ github.repository_owner }}/sealos-${{ matrix.module.name }}-controller >> $GITHUB_OUTPUT | ||
echo cluster_repo=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller >> $GITHUB_OUTPUT | ||
echo cluster_image=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller:${tag_name} >> $GITHUB_OUTPUT | ||
echo latest_cluster_image=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller:latest >> $GITHUB_OUTPUT | ||
- name: Download sealos | ||
uses: actions/download-artifact@v3 | ||
|
@@ -240,22 +242,38 @@ jobs: | |
- name: Build ${{ matrix.module.name }}-controller cluster image | ||
working-directory: controllers/${{ matrix.module.path }}/deploy | ||
run: | | ||
CLUSTER_IMAGE_NAME=${{ steps.prepare.outputs.cluster_repo }}:${{ steps.prepare.outputs.tag_name }} | ||
sudo sealos build -t ${CLUSTER_IMAGE_NAME}-amd64 --platform linux/amd64 -f Kubefile | ||
sudo sealos build -t ${{ steps.prepare.outputs.cluster_image }}-amd64 --platform linux/amd64 -f Kubefile | ||
sudo sealos build -t ${{ steps.prepare.outputs.latest_cluster_image }}-amd64 --platform linux/amd64 -f Kubefile | ||
# delete old registry cache | ||
sudo rm -rf registry | ||
sudo sealos build -t ${CLUSTER_IMAGE_NAME}-arm64 --platform linux/arm64 -f Kubefile | ||
sudo sealos build -t ${{ steps.prepare.outputs.cluster_image }}-arm64 --platform linux/arm64 -f Kubefile | ||
sudo sealos build -t ${{ steps.prepare.outputs.latest_cluster_image }}-arm64 --platform linux/arm64 -f Kubefile | ||
- name: Manifest Cluster Images | ||
# if push to master, then patch images to ghcr.io | ||
run: | | ||
CLUSTER_IMAGE_NAME=${{ steps.prepare.outputs.cluster_repo }}:${{ steps.prepare.outputs.tag_name }} | ||
sudo sealos images | ||
bash docker/patch/manifest-cluster-images.sh $CLUSTER_IMAGE_NAME | ||
bash docker/patch/manifest-cluster-images.sh ${{ steps.prepare.outputs.cluster_image }} | ||
bash docker/patch/manifest-cluster-images.sh ${{ steps.prepare.outputs.latest_cluster_image }} | ||
env: | ||
OWNER: ${{ github.repository_owner }} | ||
|
||
- name: Renew issue and Sync Images | ||
- name: Renew issue and Sync Images for ${{ steps.prepare.outputs.cluster_image }} | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
version: v0.0.8-rc1 | ||
env: | ||
GH_TOKEN: "${{ secrets.GH_PAT }}" | ||
SEALOS_TYPE: "issue_renew" | ||
SEALOS_ISSUE_TITLE: "[DaylyReport] Auto build for sealos" | ||
SEALOS_ISSUE_BODYFILE: "scripts/ISSUE_RENEW.md" | ||
SEALOS_ISSUE_LABEL: "dayly-report" | ||
SEALOS_ISSUE_TYPE: "day" | ||
SEALOS_ISSUE_REPO: "labring-actions/cluster-image" | ||
SEALOS_COMMENT_BODY: "/imagesync ${{ steps.prepare.outputs.cluster_image }}" | ||
|
||
- name: Renew issue and Sync Images for ${{ steps.prepare.outputs.latest_cluster_image }} | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
|
@@ -268,4 +286,4 @@ jobs: | |
SEALOS_ISSUE_LABEL: "dayly-report" | ||
SEALOS_ISSUE_TYPE: "day" | ||
SEALOS_ISSUE_REPO: "labring-actions/cluster-image" | ||
SEALOS_COMMENT_BODY: "/imagesync ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller:${{ steps.prepare.outputs.tag_name }}" | ||
SEALOS_COMMENT_BODY: "/imagesync ${{ steps.prepare.outputs.latest_cluster_image }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,6 +164,7 @@ jobs: | |
echo new_docker_image=ghcr.io/${{ github.repository_owner }}/sealos-${{ env.MODULE_NAME }}-frontend:${tag_name} >> $GITHUB_OUTPUT | ||
echo cluster_repo=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend >> $GITHUB_OUTPUT | ||
echo cluster_image=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend:${tag_name} >> $GITHUB_OUTPUT | ||
echo latest_cluster_image=ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend:latest >> $GITHUB_OUTPUT | ||
- name: Download sealos | ||
uses: actions/download-artifact@v3 | ||
|
@@ -185,19 +186,21 @@ jobs: | |
run: | | ||
sudo sed -i "s;${{ steps.prepare.outputs.old_docker_image }};${{ steps.prepare.outputs.new_docker_image }};" manifests/* | ||
sudo sealos build -t ${{ steps.prepare.outputs.cluster_image }}-amd64 --platform linux/amd64 -f Kubefile | ||
sudo sealos build -t ${{ steps.prepare.outputs.latest_cluster_image }}-amd64 --platform linux/amd64 -f Kubefile | ||
# delete old registry cache | ||
sudo rm -rf registry | ||
sudo sealos build -t ${{ steps.prepare.outputs.cluster_image }}-arm64 --platform linux/arm64 -f Kubefile | ||
sudo sealos build -t ${{ steps.prepare.outputs.latest_cluster_image }}-arm64 --platform linux/arm64 -f Kubefile | ||
- name: Manifest Cluster Images | ||
run: | | ||
CLUSTER_IMAGE_NAME=${{ steps.prepare.outputs.cluster_image }} | ||
sudo sealos images | ||
bash docker/patch/manifest-cluster-images.sh $CLUSTER_IMAGE_NAME | ||
bash docker/patch/manifest-cluster-images.sh ${{ steps.prepare.outputs.cluster_image }} | ||
bash docker/patch/manifest-cluster-images.sh ${{ steps.prepare.outputs.latest_cluster_image }} | ||
env: | ||
OWNER: ${{ github.repository_owner }} | ||
|
||
- name: Renew issue and Sync Images | ||
- name: Renew issue and Sync Images for ${{ steps.prepare.outputs.cluster_image }} | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
|
@@ -210,4 +213,19 @@ jobs: | |
SEALOS_ISSUE_LABEL: "dayly-report" | ||
SEALOS_ISSUE_TYPE: "day" | ||
SEALOS_ISSUE_REPO: "labring-actions/cluster-image" | ||
SEALOS_COMMENT_BODY: "/imagesync ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend:${{ steps.prepare.outputs.tag_name }}" | ||
SEALOS_COMMENT_BODY: "/imagesync ${{ steps.prepare.outputs.cluster_image }}" | ||
|
||
- name: Renew issue and Sync Images for ${{ steps.prepare.outputs.latest_cluster_image }} | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
version: v0.0.8-rc1 | ||
env: | ||
GH_TOKEN: "${{ secrets.GH_PAT }}" | ||
SEALOS_TYPE: "issue_renew" | ||
SEALOS_ISSUE_TITLE: "[DaylyReport] Auto build for sealos" | ||
SEALOS_ISSUE_BODYFILE: "scripts/ISSUE_RENEW.md" | ||
SEALOS_ISSUE_LABEL: "dayly-report" | ||
SEALOS_ISSUE_TYPE: "day" | ||
SEALOS_ISSUE_REPO: "labring-actions/cluster-image" | ||
SEALOS_COMMENT_BODY: "/imagesync ${{ steps.prepare.outputs.latest_cluster_image }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.