Skip to content

Commit

Permalink
Added reuseable workflow (flyteorg#391)
Browse files Browse the repository at this point in the history
* Added reuseable workflow

Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Feb 10, 2022
1 parent 7625cf3 commit 40adcd1
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 393 deletions.
37 changes: 0 additions & 37 deletions flytepropeller/.github/workflows/boilerplate-automation.yml

This file was deleted.

68 changes: 68 additions & 0 deletions flytepropeller/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Flytepropeller 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@master

integration:
name: Integration Test
needs: [docker-build]
uses: flyteorg/flytetools/.github/workflows/integration.yml@master

generate:
name: Check Go Gennerate
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 Flytepropeller 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 }}

168 changes: 0 additions & 168 deletions flytepropeller/.github/workflows/master.yml

This file was deleted.

Loading

0 comments on commit 40adcd1

Please sign in to comment.