Skip to content

Deploy dev.metaculus.com (staging) #1424

Deploy dev.metaculus.com (staging)

Deploy dev.metaculus.com (staging) #1424

Workflow file for this run

name: Deploy dev.metaculus.com (staging)
on:
workflow_dispatch:
jobs:
deploy-to-dev:
runs-on: ubuntu-24.04
environment: dev_env
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_APP: dev-metaculus-web
ENV_DOCKER_TAG: dev
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and deploy to Heroku
run: |
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
heroku container:login # uses the HEROKU_API_KEY
./scripts/deploy_to_heroku.sh
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to ghcr.io
run: |
docker build --platform linux/amd64 . -t ghcr.io/metaculus/metaculus:$ENV_DOCKER_TAG-$GITHUB_SHA -t ghcr.io/metaculus/metaculus:$ENV_DOCKER_TAG-latest --target all_runners --push