Skip to content

Commit

Permalink
ci: refactor to simple ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Peters committed Apr 20, 2024
1 parent 2594755 commit 0ee02b3
Showing 1 changed file with 9 additions and 38 deletions.
47 changes: 9 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,17 @@
name: build redfish exporter package
name: ci-pipeline

on:
issue_comment:
types:
- edited
- created
pull_request:
branches:
- master
push:
branches: [master]

jobs:
centos-7:
name: on centos 7
runs-on: ubuntu-20.04
if: github.event.comment.body == 'build on centos 7' || github.event.pull_request.opened || github.event.pull_request.reopened
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
# - name: scan codeql
# uses: github/codeql-action/init@v1
# with:
# languages: go
- name: Update apt repository
run: sudo apt-get update -y
- name: Install dependencies
run: sudo apt-get install -y make curl podman
- name: build package
run: make docker-build-centos7
centos-8:
name: on centos 8
runs-on: ubuntu-20.04
if: github.event.comment.body == 'build on centos 8' || github.event.pull_request.opened || github.event.pull_request.reopened
steps:
- name: Checkout source code
uses: actions/checkout@v2
# - name: scan codeql
# uses: github/codeql-action/init@v1
# with:
# languages: go
- name: Update apt repository
run: sudo apt-get update -y
- name: Install dependencies
run: sudo apt-get install -y make curl podman
- name: build package
run: make docker-build-centos8
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- uses: actions/setup-go@v5
- uses: pre-commit/action@v3.0.1

0 comments on commit 0ee02b3

Please sign in to comment.