Skip to content

Merge pull request #155 from Games-of-Switzerland/feature/150--popove… #149

Merge pull request #155 from Games-of-Switzerland/feature/150--popove…

Merge pull request #155 from Games-of-Switzerland/feature/150--popove… #149

Workflow file for this run

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 }}