Skip to content

Commit

Permalink
Merge pull request #137 from sp-yduck/improve/ci
Browse files Browse the repository at this point in the history
disable chat command
  • Loading branch information
sp-yduck authored Nov 11, 2023
2 parents 1546b64 + 3a0410c commit cd7f6ee
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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 }})"
run: "make docker-buildx IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_SHA::7}"

0 comments on commit cd7f6ee

Please sign in to comment.