From b68b90cffa633b886073f3862d672ea42296fc8a Mon Sep 17 00:00:00 2001 From: "Flynn, Conor" Date: Sun, 2 Apr 2023 14:16:59 -0400 Subject: [PATCH] Create dev-workflow.yml --- .github/workflows/dev-workflow.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/dev-workflow.yml diff --git a/.github/workflows/dev-workflow.yml b/.github/workflows/dev-workflow.yml new file mode 100644 index 00000000..ae315fa1 --- /dev/null +++ b/.github/workflows/dev-workflow.yml @@ -0,0 +1,37 @@ +name: dev-workflow +on: + push: + branches: [ main ] + paths: 'DeFi-Data-Engine/**' + workflow_dispatch: + +jobs: + buildDocker: + runs-on: [ self-hosted ] + defaults: + run: + working-directory: "DeFi-Data-Engine/" + + steps: + - uses: actions/checkout@v3 + + - name: Stop Existing Images + run: docker compose down + + - name: Build + run: docker compose build + + runDocker: + needs: buildDocker + runs-on: [ self-hosted ] + + defaults: + run: + working-directory: "DeFi-Data-Engine/" + +# steps: +# - name: Create Containers +# run: sudo docker compose create + + - name: Start services + run: docker compose up