2022-12-02 22:32:55 +01:00
|
|
|
name: Deploy to Oracle Cloud
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-12-02 22:38:57 +01:00
|
|
|
branches: [main]
|
2022-12-02 22:32:55 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: oracle-cloud
|
2022-12-02 22:38:57 +01:00
|
|
|
|
2022-12-02 22:32:55 +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 }}
|
|
|
|
ssh_user: ${{ secrets.ORACLE_CLOUD_SSH_PRIVATE_KEY }}
|
|
|
|
ssh_private_key: ${{ secrets.ORACLE_CLOUD_SSH_USER }}
|
2022-12-02 22:38:57 +01:00
|
|
|
docker_compose_prefix: bot
|