From bd199b35534946d0db3476479f88794163c19650 Mon Sep 17 00:00:00 2001 From: Doctorixx <61980858+Windows-up@users.noreply.github.com> Date: Sun, 28 Jul 2024 22:04:24 +0300 Subject: [PATCH] update ci/cd pipeline --- .github/workflows/build-test.yml | 1 + .github/workflows/deploy.yml | 16 ---------------- .github/workflows/newman-tests.yml | 1 + 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index aec8463..a413330 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -31,4 +31,5 @@ jobs: collection: tests/autotests.json environment: tests/local_env.json - name: Docker down + if: always() run: docker compose -p test_codebattles -f test-docker-compose.yml down diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index c89c6ed..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: deploy -on: workflow_dispatch -jobs: - build: - name: build - runs-on: self-hosted - steps: - - uses: actions/checkout@v1 - - name: build - run: docker compose build - run: - needs: [build] - runs-on: self-hosted - steps: - - name: run - run: docker compose up -d diff --git a/.github/workflows/newman-tests.yml b/.github/workflows/newman-tests.yml index dace043..05e235d 100644 --- a/.github/workflows/newman-tests.yml +++ b/.github/workflows/newman-tests.yml @@ -17,5 +17,6 @@ jobs: collection: tests/autotests.json environment: tests/local_env.json - name: Docker down + if: always() run: docker compose -p test_codebattles -f test-docker-compose.yml down