Change env variable names and format

This commit is contained in:
JelNiSlaw 2022-12-02 22:38:57 +01:00
parent 1b4adeb4c8
commit ec2fa5b4c1
No known key found for this signature in database
GPG key ID: EA41571A0A88E97E
2 changed files with 18 additions and 15 deletions

View file

@ -2,23 +2,26 @@ name: Deploy to Oracle Cloud
on:
push:
branches: [ main ]
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
environment: oracle-cloud
steps:
- uses: actions/checkout@v2
- name: Create .env file
uses: SpicyPizza/create-envfile@v1
with:
envkey_API_GITHUB_TOKEN: ${{ secrets.API_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.CLOUD_SSH_HOST }}
ssh_private_key: ${{ secrets.CLOUD_SSH_PRIVATE_KEY }}
ssh_user: ${{ secrets.CLOUD_SSH_USER }}
docker_compose_prefix: bot
- 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

View file

@ -1,4 +1,4 @@
version: "3.5"
services:
bot:
build: .
build: .