From 7dc0bd3f1a88a14e2e1d9cd2668ddce99abd1456 Mon Sep 17 00:00:00 2001 From: Frederic Leger Date: Tue, 21 Nov 2023 23:32:01 +0100 Subject: [PATCH] feat: add basic github CI --- .github/workflows/werf.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/werf.yml diff --git a/.github/workflows/werf.yml b/.github/workflows/werf.yml new file mode 100644 index 0000000..181bdf8 --- /dev/null +++ b/.github/workflows/werf.yml @@ -0,0 +1,38 @@ +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: Install asdf + uses: asdf-vm/actions/setup@v3.0.2 + + - 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: | + source "$(werf ci-env github --as-file)" + make ci + env: + WERF_ENV: demo