Skip to content

Commit

Permalink
Create prod-action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
flynnc3 authored Apr 2, 2023
1 parent aaf39b2 commit f13f27b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/prod-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CD to Docker
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: sudo docker compose down

- name: Build
run: sudo docker compose build

# - name: Push to Docker
# run: sudo docker compose push

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: sudo docker compose up

0 comments on commit f13f27b

Please sign in to comment.