Skip to content

Commit

Permalink
Manually install heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
klydra committed Jun 27, 2024
1 parent 2224c43 commit 18c64ca
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/heroku.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,30 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up Heroku CLI
run: curl https://cli-assets.heroku.com/install.sh | sh

- name: Set environment variables
run: |
touch .env
echo "TURSO_DATABASE_URL=${{ secrets.TURSO_DATABASE_URL }}" >> .env
echo "TURSO_AUTH_TOKEN=${{ secrets.TURSO_AUTH_TOKEN }}" >> .env
echo "ELYSIA_API_PORT=80" >> .env
- name: Deploy to Heroku
uses: akhileshns/heroku-deploy@v3.13.15
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
usedocker: true
- name: Build Docker image
run: docker build -t ${{ secrets.HEROKU_APP_NAME }} .

- name: Authenticate with Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:login

- name: Push Docker image to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: |
heroku container:push web --app ${{ secrets.HEROKU_APP_NAME }}
heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }}

0 comments on commit 18c64ca

Please sign in to comment.