Skip to content

Commit

Permalink
build(main): auto renew issue and auto comment body (labring#3393)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu committed Jun 20, 2023
1 parent 05b2f53 commit ae8a867
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 49 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/ci-patch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}"
19 changes: 12 additions & 7 deletions .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
19 changes: 12 additions & 7 deletions .github/workflows/controllers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
19 changes: 12 additions & 7 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
4 changes: 4 additions & 0 deletions scripts/ISSUE_RENEW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Sealos Image Update
```
/imagesync imageSourceName
```

0 comments on commit ae8a867

Please sign in to comment.