wulkabot/.github/workflows/deploy.yml

29 lines
763 B
YAML
Raw Permalink Normal View History

name: Deploy to Oracle Cloud
on:
push:
2022-12-02 22:38:57 +01:00
branches: [main]
2023-07-22 14:52:50 +02:00
workflow_dispatch:
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:
2022-12-02 22:45:11 +01:00
envkey_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
2022-12-02 22:38:57 +01:00
envkey_DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
- uses: alex-ac/github-action-ssh-docker-compose@master
name: Docker Compose remote deployment
with:
2022-12-02 22:45:11 +01:00
ssh_host: ${{ secrets.ORACLE_CLOUD_SSH_HOST }}
2022-12-02 23:44:18 +01:00
ssh_user: ${{ secrets.ORACLE_CLOUD_SSH_USER }}
ssh_private_key: ${{ secrets.ORACLE_CLOUD_SSH_PRIVATE_KEY }}
2022-12-02 22:38:57 +01:00
docker_compose_prefix: bot