From 19611060badcbb1c4e43dd37cadabebc14e4081d Mon Sep 17 00:00:00 2001 From: alfredeen Date: Thu, 18 Apr 2024 16:47:35 +0200 Subject: [PATCH] Added a CI github action --- .github/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3235a6f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [ "develop" ] + paths-ignore: + - '**.md' + + pull_request: + branches: [ "develop" ] + paths-ignore: + - '**.md' + + # Adds ability to run this workflow manually + workflow_dispatch: + + +jobs: + + lint: + runs-on: ubuntu-latest + env: + HADOLINT_RECURSIVE: "true" + + steps: + - uses: actions/checkout@v3 + - uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: "Dockerfile*" + + + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag ci:$(date +%s)