diff --git a/.github/workflows/auto-build-main.yml b/.github/workflows/auto-build-main.yml deleted file mode 100644 index abacd52..0000000 --- a/.github/workflows/auto-build-main.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Auto build image -on: - issue_comment: - types: - - created -jobs: - issue_comment: - name: Auto build image - if: startswith(github.event.comment.body, '/autobuild') - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - - name: Auto build image - id: autobuild - run: | - commentbody="${{github.event.comment.body}}" - commentbody=$(echo $commentbody | sed "s/\/imagebuild//g") - sudo git clone https://github.com/sealerio/basefs.git && cd basefs - sudo touch autobuild.log && sudo chmod 666 autobuild.log && sudo bash auto-build-main.sh --username="${{secrets.REGISTRY_USERNAME}}" --password="${{secrets.REGISTRY_PASSWORD}}" $commentbody > autobuild.log && cat autobuild.log - echo "::set-output name=info::$(grep 'cri:' autobuild.log))" - - - name: Success Commit - uses: peter-evans/create-or-update-comment@v1 - with: - issue-number: ${{ github.event.issue.number }} - body: | - ${{ steps.autobuild.outputs.info }} \ No newline at end of file