From f58846ef20660c07e57d87377ae4a2dc4a538c80 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 8 Oct 2023 17:38:52 +0100 Subject: [PATCH] feat(fractal): add GitHub Actions template --- .../fractal/.github/workflows/ci.yml.twig | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 templates/fractal/.github/workflows/ci.yml.twig diff --git a/templates/fractal/.github/workflows/ci.yml.twig b/templates/fractal/.github/workflows/ci.yml.twig new file mode 100644 index 0000000..c040210 --- /dev/null +++ b/templates/fractal/.github/workflows/ci.yml.twig @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + push: + workflow_dispatch: + +{% if not isFlake %} +env: + COMPOSE_DOCKER_CLI_BUILD: 1 + DOCKER_BUILDKIT: 1 + DOCKER_UID: 1001 +{% endif %} + +jobs: + build: + name: Build + + runs-on: ubuntu-latest + + steps: + - name: Checkout the code + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + + - name: Build + run: | + ./run ci:build