mirror of https://github.com/buster-so/buster.git
docker release fix
This commit is contained in:
parent
ec5f0a0560
commit
4adca4ecc5
|
@ -5,6 +5,10 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main # Trigger when PR from staging is merged to main
|
- main # Trigger when PR from staging is merged to main
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Placeholder for Docker Hub username/organization or GHCR owner
|
# Placeholder for Docker Hub username/organization or GHCR owner
|
||||||
DOCKER_REGISTRY_OWNER: ghcr.io/${{ github.repository_owner }}
|
DOCKER_REGISTRY_OWNER: ghcr.io/${{ github.repository_owner }}
|
||||||
|
@ -14,7 +18,7 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
prepare_docker_release_info:
|
prepare_docker_release_info:
|
||||||
name: Prepare Docker Release Information
|
name: Prepare Docker Release Information
|
||||||
runs-on: ubuntu-latest
|
runs-on: blacksmith-32vcpu-ubuntu-2204
|
||||||
outputs:
|
outputs:
|
||||||
api_version: ${{ steps.version_info.outputs.api_version }}
|
api_version: ${{ steps.version_info.outputs.api_version }}
|
||||||
web_version: ${{ steps.version_info.outputs.web_version }}
|
web_version: ${{ steps.version_info.outputs.web_version }}
|
||||||
|
|
|
@ -6,44 +6,6 @@
|
||||||
- 'api/**'
|
- 'api/**'
|
||||||
name: Deploy to evals
|
name: Deploy to evals
|
||||||
jobs:
|
jobs:
|
||||||
database-deploy:
|
|
||||||
runs-on: blacksmith-16vcpu-ubuntu-2204
|
|
||||||
environment: staging
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install Rust
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Cache Rust dependencies
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Install Diesel CLI
|
|
||||||
run: cargo install diesel_cli --no-default-features --features postgres
|
|
||||||
|
|
||||||
- name: Configure AWS Credentials
|
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
|
||||||
with:
|
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
aws-region: ${{ secrets.AWS_REGION }}
|
|
||||||
|
|
||||||
- name: Download Postgres certificate from S3
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.postgresql
|
|
||||||
aws s3 cp ${{ secrets.CERT_S3_URL }} ~/.postgresql/root.crt
|
|
||||||
|
|
||||||
- name: Run migrations
|
|
||||||
working-directory: ./api
|
|
||||||
run: diesel migration run
|
|
||||||
env:
|
|
||||||
DATABASE_URL: ${{ secrets.EVAL_DB_URL }}
|
|
||||||
PGSSLMODE: disable
|
|
||||||
porter-deploy:
|
porter-deploy:
|
||||||
runs-on: blacksmith-32vcpu-ubuntu-2204
|
runs-on: blacksmith-32vcpu-ubuntu-2204
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in New Issue