wulkabot/.github/workflows/deploy.yml

28 lines
699 B
YAML
Raw Normal View History

name: Deploy to Oracle Cloud
on:
push:
2022-12-02 22:38:57 +01:00
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
environment: oracle-cloud
2022-12-02 22:38:57 +01:00
steps:
2022-12-02 22:38:57 +01:00
- uses: actions/checkout@v3
- name: Create .env file
uses: SpicyPizza/create-envfile@v1
with:
envkey_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
envkey_DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
- uses: alex-ac/github-action-ssh-docker-compose@master
name: Docker Compose remote deployment
with:
ssh_host: ${{ secrets.SSH_HOST }}
ssh_user: ${{ secrets.SSH_USER }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
docker_compose_prefix: bot