Skip to content
Permalink
6dfb2b4918
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
View runs Go to file
 
 
Cannot retrieve contributors at this time
37 lines (29 sloc) 717 Bytes
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: Run Docker Compose
run: sudo docker compose up