generated from konveyor/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (44 loc) · 1.09 KB
/
global-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 podman-build
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.tar
retention-days: 1
e2e:
needs: build-hub
uses: konveyor/ci/.github/workflows/global-ci.yml@main
with:
component_name: tackle2-hub