This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
86 lines (74 loc) · 2.48 KB
/
checks.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Flyteadmin Checks
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
lint:
name: Lint
uses: flyteorg/flytetools/.github/workflows/lint.yml@master
tests:
name: Unit Tests
uses: flyteorg/flytetools/.github/workflows/tests.yml@master
secrets:
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
docker-build:
name: Docker Build Images
uses: flyteorg/flytetools/.github/workflows/docker_build.yml@master
endtoend:
name: End2End Test
needs: [ docker-build ]
uses: flyteorg/flytetools/.github/workflows/end2end.yml@update-python-version
with:
priorities: "P0"
cache_key: ${{ needs.docker-build.outputs.cache_key }}
integration:
name: Integration Test
needs: [ docker-build ]
uses: flyteorg/flytetools/.github/workflows/integration.yml@master
with:
cache_key: ${{ needs.docker-build.outputs.cache_key }}
generate:
name: Check Go Generate
uses: flyteorg/flytetools/.github/workflows/go_generate.yml@master
bump_version:
name: Bump Version
if: ${{ github.event_name != 'pull_request' }}
needs: [ endtoend, integration, lint, tests, generate ] # Only to ensure it can successfully build
uses: flyteorg/flytetools/.github/workflows/bump_version.yml@master
secrets:
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
goreleaser:
name: Goreleaser
needs: [ bump_version ] # Only to ensure it can successfully build
uses: flyteorg/flytetools/.github/workflows/goreleaser.yml@master
secrets:
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
push_docker_image:
name: Build & Push Flyteadmin Image
needs: [ bump_version ]
uses: flyteorg/flytetools/.github/workflows/publish.yml@master
with:
version: ${{ needs.bump_version.outputs.version }}
dockerfile: Dockerfile
push: true
repository: ${{ github.repository }}
secrets:
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
FLYTE_BOT_USERNAME: ${{ secrets.FLYTE_BOT_USERNAME }}
push-docker-image-flytescheduler:
name: Build & Push Flytescheduler Image
needs: [ bump_version ]
uses: flyteorg/flytetools/.github/workflows/publish.yml@master
with:
version: ${{ needs.bump_version.outputs.version }}
push: true
repository: flyteorg/flytescheduler
dockerfile: scheduler.Dockerfile
secrets:
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }}
FLYTE_BOT_USERNAME: ${{ secrets.FLYTE_BOT_USERNAME }}