Skip to content

Commit

Permalink
Merge pull request #31 from fabianvf/pass-ruleset-args
Browse files Browse the repository at this point in the history
🌱 Add global CI, allow custom ruleset args
  • Loading branch information
fabianvf authored Dec 13, 2023
2 parents b5583a1 + cd9d6a2 commit b1e56c9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/global-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Global CI

on:
push:
branches:
- main
- 'release-*'
tags:
- 'v*'
pull_request:
branches:
- main
- 'release-*'

jobs:
build-hub:
name: Build tackle2-hub
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
repository: konveyor/tackle2-hub
ref: ${{ github.event_name == 'push' && github.ref || github.base_ref }}
path: tackle2-hub

- uses: actions/checkout@v3
with:
path: tackle2-hub/tackle2-seed

- name: Build hub and save image
working-directory: tackle2-hub
run: |
IMG=quay.io/konveyor/tackle2-hub:latest make image-podman
podman save -o /tmp/tackle2-hub.tar quay.io/konveyor/tackle2-hub:latest
- name: Upload image as artifact
uses: actions/upload-artifact@v3
with:
name: tackle2-hub
path: /tmp/tackle2-hub
retention-days: 1
e2e:
needs: build-hub
uses: konveyor/ci/.github/workflows/global-ci.yml@main
with:
component_name: tackle2-hub
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ PREPARE = -o bin/prepare github.com/konveyor/tackle2-seed/cmd/prepare
RULESET = -o bin/ruleset github.com/konveyor/tackle2-seed/cmd/ruleset
PKG = ./cmd/... ./pkg/...

RULESET_ARGS ?=

cmd: prepare ruleset

prepare: fmt vet
Expand All @@ -21,6 +23,6 @@ run-prepare: prepare

ruleset-patch: cmd
bin/prepare
bin/ruleset
bin/ruleset ${RULESET_ARGS}
bin/prepare

0 comments on commit b1e56c9

Please sign in to comment.