Include encryption in dockerfile #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Heroku | |
on: | |
push: | |
paths: | |
- bun.lockb | |
- package.json | |
- Dockerfile | |
- .github/workflows/heroku.yaml | |
- api/** | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- 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: 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 }} |