From 9bd5aefd76cf78e720266fa2cf1a0a92f0d65288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Sun, 26 Nov 2023 03:02:55 +0100 Subject: [PATCH] Build test pipeline --- .github/workflows/test.yml | 15 ++++++++++----- .github/workflows/tests.yml | 14 -------------- 2 files changed, 10 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3295299..6e474bf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,12 +5,13 @@ on: branches: [ main ] jobs: - build: + build-test: runs-on: [moon, amd64] container: - image: node:18 - # env: - # NODE_ENV: development + image: harbor.hq.rosti.cz/library/builder:39 + env: + REPO: harbor.hq.rosti.cz + USERNAME: robot$rosti+rosti # ports: # - 80 # volumes: @@ -18,6 +19,10 @@ jobs: # options: --cpus 1 steps: - name: Check for dockerenv file - run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv) + run: | + echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO + task build + task test + diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index b28bece..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Image testing - -on: -- push - -jobs: - tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: testing - run: | - make build - make test