From 74dda6c9ef92e27fb4a484ae28f4ecea5e2a5247 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 8 Aug 2026 12:05:25 -0400 Subject: [PATCH] ci: Try it --- .github/workflows/pr.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7fdbb1a..8d3f051 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -79,15 +79,10 @@ jobs: unzip awscliv2.zip sudo ./aws/install aws --version - # Garage is accessible at localhost:3900 - sleep 15 - docker ps -a | grep garage || echo "Garage container not found" - sleep 15 - echo "Same old" - curl -v http://localhost:3900 + curl -v ${{ secrets.S3_CI_ENDPOINT_URL }} # Create bucket - aws --endpoint-url=http://localhost:3900 s3 mb s3://soaricarus-ci-bucket --region us-east-1 + aws --endpoint-url=${{ secrets.S3_CI_ENDPOINT_URL }} s3 mb s3://soaricarus-ci-bucket --region us-east-1 - name: Run tests env: @@ -116,3 +111,15 @@ jobs: ssh-add -v ~/.ssh/soaricarus_models_deploy_key cargo test + + - name: Cleanup + if: always() + run: | + aws --endpoint-url=${{ secrets.S3_CI_ENDPOINT_URL }} \ + s3 rb s3://soaricarus-ci-bucket --force \ + --region us-east-1 + env: + AWS_ACCESS_KEY_ID: "${{ secrets.GARAGE_KEY_ID }}" + AWS_SECRET_ACCESS_KEY: "${{ secrets.GARAGE_SECRET }}" + AWS_DEFAULT_REGION: us-east-1 + continue-on-error: true