Merge pull request #2277 from Kobzol/job-queue-constraint-kind #2
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: Manual deploy | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
AWS_ACCESS_KEY_ID: AKIA46X5W6CZBLO3VBND | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: docker/setup-buildx-action@v2 | |
- name: Build Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
# Export the image to Docker to make it available in the next step | |
load: true | |
tags: rustc-perf | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Deploy to production | |
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master | |
with: | |
image: rustc-perf | |
repository: rust-rustc-perf | |
region: us-west-1 | |
redeploy_ecs_cluster: rust-ecs-prod | |
redeploy_ecs_service: rustc-perf | |
aws_access_key_id: "${{ env.AWS_ACCESS_KEY_ID }}" | |
aws_secret_access_key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" |