Merge pull request #57 from florijanqosja/validate-fix #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PROD | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
deploy: | |
runs-on: [self-hosted, linux, X64, prod] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Configure environment | |
run: | | |
cp /home/ubuntu/safe/.env.prod .env | |
cp /home/ubuntu/safe/.env.prod web/.env | |
cp -r /home/ubuntu/dev/actions-runner/developement/Albanian-ASR/Albanian-ASR /home/ubuntu/prod/actions-runner/production/Albanian-ASR/Albanian-ASR/ | |
mv /home/ubuntu/prod/actions-runner/production/Albanian-ASR/Albanian-ASR/Albanian-ASR /home/ubuntu/prod/actions-runner/production/Albanian-ASR/Albanian-ASR/dev | |
- name: Build and Deploy | |
run: | | |
cd /home/ubuntu/prod/actions-runner/production/Albanian-ASR/Albanian-ASR | |
sudo docker-compose up --build -d |