Skip to content

chore: no upstream merge for github actions #3

chore: no upstream merge for github actions

chore: no upstream merge for github actions #3

name: Deploy backend stage
concurrency:
group: backend-deployment-stage
permissions: {}
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
deploy-backend:
name: Deploy backend
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install heroku CLI
run: curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
- name: Login to heroku container registry
uses: docker/login-action@v3
with:
username: "_"
password: ${{ secrets.HEROKU_TOKEN }}
registry: registry.heroku.com
- name: Build and publish containers
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile.backend
build-args: |
TURBO_TEAM=${{ vars.TURBO_TEAM }}
TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
tags: |
registry.heroku.com/${{ secrets.HEROKU_BACKEND_DEV }}/web
- name: Release published containers
run: |
heroku container:release -a ${{ secrets.HEROKU_BACKEND_DEV }} -v web
env:
HEROKU_ORGANIZATION: ${{ vars.HEROKU_ORG }}
HEROKU_API_KEY: ${{ secrets.HEROKU_TOKEN }}