Merge pull request #147 from Games-of-Switzerland/feature/#140--membe… #133
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] | |
env: | |
COMPOSE_DOCKER_CLI_BUILD: 1 | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
deploy_prod: | |
name: Deploy to Production | |
environment: | |
name: Production | |
url: https://swissgames.garden | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
env: | |
PRIVATE_SSH_KEY: ${{ secrets.PRIVATE_SSH_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/deploy | |
with: | |
stage: production | |
ssh_private_key: ${{ secrets.PRIVATE_SSH_KEY }} | |
deploy_staging: | |
name: Deploy to Staging | |
environment: | |
name: Staging | |
url: https://staging.swissgames.garden | |
if: github.ref == 'refs/heads/dev' | |
runs-on: ubuntu-latest | |
env: | |
PRIVATE_SSH_KEY: ${{ secrets.PRIVATE_SSH_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/deploy | |
with: | |
stage: staging | |
ssh_private_key: ${{ secrets.PRIVATE_SSH_KEY }} |