From e4448546889d4a6fa25f7ee978714e9f80af43c9 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:26:48 +0100 Subject: [PATCH] ci: add simple e2e test Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/e2e_simple.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/e2e_simple.yml diff --git a/.github/workflows/e2e_simple.yml b/.github/workflows/e2e_simple.yml new file mode 100644 index 0000000000..876cc56d0d --- /dev/null +++ b/.github/workflows/e2e_simple.yml @@ -0,0 +1,37 @@ +name: e2e test simple + +on: + workflow_dispatch: + +env: + container_registry: ghcr.io/edgelesssys + azure_resource_group: nunki-ci + +jobs: + test: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - uses: DeterminateSystems/magic-nix-cache-action@8a218f9e264e9c3803c9a1ee1c30d8e4ab55be63 #v2 + - name: Login to Azure + uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7 + with: + creds: ${{ secrets.NUNKI_CI_INFRA_AZURE }} + - uses: nicknovitski/nix-develop@v1.0.0 + - name: Create justfile.env + run: + cat < justfile.env + container_registry=${{ env.container_registry }} + azure_resource_group=${{ env.azure_resource_group }} + EOF + - name: Get credentials for CI cluster + run: just get-credentials + - name: Build, push deploy + run: just default simple + - name: Set + run: just set + - name: Verify + run: just verify