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