From 08ba759b15871f38b1e211ddadf89eb5caf068e4 Mon Sep 17 00:00:00 2001 From: Arvydas Silanskas Date: Sun, 14 Jul 2024 21:07:12 +0300 Subject: [PATCH] docker actiosn --- .github/workflows/build.yml | 16 ++++++++++++++++ .github/workflows/lint.yml | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..fd105ae --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Build docker image +on: + push: + +jobs: + build_docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and export to Docker + uses: docker/build-push-action@v6 + with: + push: false + - run: | + cd build + docker build .. -f Dockerfile diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..25e403a --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint angular app +on: + push: + paths: + - '.github/workflows/lint.yml' + - 'scheme-index-app/**' +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: | + cd scheme-index-app + npm run lint