fix: function naming #269
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: Continuous Deployment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy to production | |
environment: Production | |
concurrency: | |
group: ${{ github.workflow }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Stopping the supervisor & workers | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SERVICES_SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
cd ${{ secrets.SCP_TARGET }} | |
cd ${{ secrets.SERVICES_PROJECT_PATH }} | |
docker compose down --remove-orphans && cd ~ && rm -rf ${{ secrets.SCP_TARGET }} | |
- name: Stop the webapp and backend | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.MAIN_SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
cd ${{ secrets.SCP_TARGET }} | |
docker compose down --remove-orphans && docker volume rm area_apk_volume -f && cd ~ && rm -rf ${{ secrets.SCP_TARGET }} | |
- name: Deploying the new supervisor & workers | |
uses: kostya-ten/ssh-server-deploy@v4 | |
with: | |
host: ${{ secrets.SERVICES_SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
private_key: ${{ secrets.SSH_KEY }} | |
scp_source: . | |
scp_target: ${{ secrets.SCP_TARGET }} | |
after_script: | | |
cd ${{ secrets.SCP_TARGET }} | |
INFISICAL_TOKEN=${{ secrets.INFISICAL_TOKEN }} ./scripts/dump_env.sh prod && cd ${{ secrets.SERVICES_PROJECT_PATH }} && docker compose build && docker compose up supervisor --build -d | |
- name: Deploying the new webapp and backend | |
uses: kostya-ten/ssh-server-deploy@v4 | |
with: | |
host: ${{ secrets.MAIN_SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
private_key: ${{ secrets.SSH_KEY }} | |
scp_source: . | |
scp_target: ${{ secrets.SCP_TARGET }} | |
after_script: | | |
cd ${{ secrets.SCP_TARGET }} | |
INFISICAL_TOKEN=${{ secrets.INFISICAL_TOKEN }} ./scripts/dump_env.sh prod && docker compose --profile prod up --build -d |