From 4adca4ecc57f9bd82a744ef0cf8a18fedbc74889 Mon Sep 17 00:00:00 2001 From: dal Date: Wed, 7 May 2025 07:23:51 -0600 Subject: [PATCH] docker release fix --- .github/workflows/docker-release.yml | 6 +++- .github/workflows/porter_app_evals_3155.yml | 38 --------------------- 2 files changed, 5 insertions(+), 39 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 798669ff0..0a120fb1c 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -5,6 +5,10 @@ on: branches: - main # Trigger when PR from staging is merged to main +permissions: + contents: read + packages: write + env: # Placeholder for Docker Hub username/organization or GHCR owner DOCKER_REGISTRY_OWNER: ghcr.io/${{ github.repository_owner }} @@ -14,7 +18,7 @@ env: jobs: prepare_docker_release_info: name: Prepare Docker Release Information - runs-on: ubuntu-latest + runs-on: blacksmith-32vcpu-ubuntu-2204 outputs: api_version: ${{ steps.version_info.outputs.api_version }} web_version: ${{ steps.version_info.outputs.web_version }} diff --git a/.github/workflows/porter_app_evals_3155.yml b/.github/workflows/porter_app_evals_3155.yml index 51f95af25..6d0d60e1b 100644 --- a/.github/workflows/porter_app_evals_3155.yml +++ b/.github/workflows/porter_app_evals_3155.yml @@ -6,44 +6,6 @@ - 'api/**' name: Deploy to evals 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: runs-on: blacksmith-32vcpu-ubuntu-2204 steps: