Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Mount ".env" as volume (#242) #72

Mount ".env" as volume (#242)

Mount ".env" as volume (#242) #72

name: Deploy application to staging environment
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: [self-hosted]
environment: staging
steps:
- name: Execute the build and run script on the server
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: "sh /services/duogradus/build-and-run.sh"