diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a75b507..3a0b058 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,20 +4,16 @@ on: push: branches: - main - issue_comment: - types: [created, edited] env: REGISTRY: docker.io IMAGE_NAME: spyduck/cluster-api-provider-proxmox - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: # add public code coverage reports coverage: name: unit test coverage runs-on: ubuntu-latest - if: github.event_name == 'push' || contains(github.event.comment.body, '/unit-test') steps: - uses: actions/checkout@master - run: "make unit-test-cover" @@ -27,7 +23,6 @@ jobs: build: name: docker build & push runs-on: ubuntu-latest - if: github.event_name == 'push' || contains(github.event.comment.body, '/buid-push') steps: - name: Checkout repository uses: actions/checkout@v4 @@ -40,13 +35,4 @@ jobs: # platform = linux/amd64,linux/arm64 - name: Build and push Docker image - run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}" - - # report result to pr comment if event is pr comment - result: - name: report to pr comment - runs-on: ubunt-latest - if: github.event_name == 'issue_comment' && ${{ github.event.issue.pull_request }} - steps: - - run: | - gh pr comment ${{ github.event.issue.number }} -b "[Actions: CI] Check result [here](https://github.com/sp-yduck/cluster-api-provider-proxmox/actions/runs/${{ github.run_number }})" \ No newline at end of file + run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}" \ No newline at end of file