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.
build(main): auto renew issue and auto comment body (labring#3393)
Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
05b2f53
commit ae8a867
Showing
7 changed files
with
89 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,15 +109,20 @@ jobs: | |
uses: actions/checkout@v3 | ||
- name: Expose git commit data | ||
uses: rlespinasse/git-commit-data-action@v1 | ||
- name: Build sealos image | ||
uses: peter-evans/create-or-update-comment@v1 | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagebuild_apps sealos ${{ env.GIT_COMMIT_SHORT_SHA }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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: "/imagebuild_apps sealos ${{ env.GIT_COMMIT_SHORT_SHA }}" | ||
save-sealos: | ||
uses: ./.github/workflows/import-save-sealos.yml | ||
build-on-cluster-patch-image: | ||
|
@@ -169,12 +174,17 @@ jobs: | |
run: | | ||
TAG=dev | ||
echo tag_name=${GIT_COMMIT_SHORT_SHA} >> $GITHUB_OUTPUT | ||
- name: Build sealos image | ||
uses: peter-evans/create-or-update-comment@v1 | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagesync ghcr.io/${{ github.repository_owner }}/sealos-patch:${{ steps.prepare.outputs.tag_name }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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 ghcr.io/${{ github.repository_owner }}/sealos-patch:${{ steps.prepare.outputs.tag_name }}" |
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 |
---|---|---|
|
@@ -91,12 +91,17 @@ jobs: | |
# todo: build multi-arch images | ||
|
||
- name: Sync Images | ||
uses: peter-evans/create-or-update-comment@v1 | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagesync ghcr.io/${{ github.repository_owner }}/sealos-cloud:${{ steps.prepare.outputs.tag_name }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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 ghcr.io/${{ github.repository_owner }}/sealos-cloud:${{ steps.prepare.outputs.tag_name }}" |
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 |
---|---|---|
|
@@ -254,12 +254,17 @@ jobs: | |
env: | ||
OWNER: ${{ github.repository_owner }} | ||
|
||
- name: Sync Images | ||
uses: peter-evans/create-or-update-comment@v1 | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagesync ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller:${{ steps.prepare.outputs.tag_name }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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 ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module.name }}-controller:${{ steps.prepare.outputs.tag_name }}" |
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 |
---|---|---|
|
@@ -198,12 +198,17 @@ jobs: | |
env: | ||
OWNER: ${{ github.repository_owner }} | ||
|
||
- name: Sync Images | ||
uses: peter-evans/create-or-update-comment@v1 | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagesync ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend:${{ steps.prepare.outputs.tag_name }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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 ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ env.MODULE_NAME }}-frontend:${{ steps.prepare.outputs.tag_name }}" |
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 |
---|---|---|
|
@@ -60,15 +60,21 @@ jobs: | |
- name: Fetch Current version | ||
id: get-current-tag | ||
uses: actions-ecosystem/[email protected] | ||
- name: Build sealos image | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagebuild_apps sealos ${{steps.get-current-tag.outputs.tag }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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: "/imagebuild_apps sealos ${{steps.get-current-tag.outputs.tag }}" | ||
|
||
changelog: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
|
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 |
---|---|---|
|
@@ -232,12 +232,17 @@ jobs: | |
env: | ||
OWNER: ${{ github.repository_owner }} | ||
|
||
- name: Sync Images | ||
uses: peter-evans/create-or-update-comment@v1 | ||
- name: Renew issue and Sync Images | ||
uses: labring/[email protected] | ||
if: ${{ github.repository_owner == env.DEFAULT_OWNER }} | ||
with: | ||
issue-number: 359 | ||
repository: labring-actions/cluster-image | ||
body: | | ||
/imagesync ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module }}-service:${{ steps.prepare.outputs.tag_name }} | ||
token: "${{ secrets.GH_PAT }}" | ||
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 ghcr.io/${{ github.repository_owner }}/sealos-cloud-${{ matrix.module }}-service:${{ steps.prepare.outputs.tag_name }}" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Sealos Image Update | ||
``` | ||
/imagesync imageSourceName | ||
``` |