Remove update progress tracker (#476) #375
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Operational Updates | |
| on: | |
| push: | |
| branches: [ main ] | |
| # Prevent concurrent runs since this is deploying to the K8S cluster | |
| concurrency: | |
| group: "deploy" | |
| cancel-in-progress: false | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| IMAGE_TAG: "${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }}" | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-24.04 | |
| environment: prod | |
| # Keep deploy-staging.yaml and these steps in sync | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: "Set up Python" | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| - name: Install kubectl | |
| uses: azure/setup-kubectl@901a10e89ea615cf61f57ac05cecdf23e7de06d8 # v3 | |
| with: | |
| version: 'latest' | |
| - name: Update kubeconfig | |
| run: | | |
| aws eks update-kubeconfig --name ${{ secrets.EKS_CLUSTER_NAME }} --region ${{ secrets.AWS_REGION }} | |
| - name: Set up Depot CLI | |
| uses: depot/setup-action@b0b1ea4f69e92ebf5dea3f8713a1b0c37b2126a5 # v1 | |
| - name: Login to Amazon ECR | |
| uses: aws-actions/amazon-ecr-login@062b18b96a7aff071d4dc91bc00c4c1a7945b076 # v2 | |
| id: login-ecr | |
| - uses: depot/build-push-action@636daae76684e38c301daa0c5eca1c095b24e780 # v1 | |
| with: | |
| project: ${{ secrets.DEPOT_PROJECT }} | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ env.IMAGE_TAG }} | |
| context: . | |
| file: deploy/Dockerfile | |
| - name: Deploy | |
| run: uv run main deploy --docker-image ${{ env.IMAGE_TAG }} |