forked from art049/fastapi-odmantic-realworld-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI Workflow (werf) | ||
|
||
on: | ||
push: | ||
branches: | ||
- ci/werf | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
|
||
- name: Install asdf | ||
uses: asdf-vm/actions/[email protected] | ||
|
||
- name: Install asdf plugins & packages | ||
run: | | ||
asdf plugin add werf https://github.com/MxNxPx/asdf-werf.git | ||
asdf plugin update --all | ||
asdf install | ||
- name: Provision kind Kubernetes cluster | ||
run: | | ||
curl -Lo /tmp/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64 | ||
chmod +x /tmp/kind | ||
/tmp/kind create cluster | ||
- name: Run make ci | ||
run: | | ||
make ci |