Skip to content

Merge pull request #2539 from Kobzol/metadata-size #213

Merge pull request #2539 from Kobzol/metadata-size

Merge pull request #2539 from Kobzol/metadata-size #213

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
env:
AWS_ACCESS_KEY_ID: AKIA46X5W6CZBLO3VBND
concurrency: deploy
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 1
persist-credentials: false
- uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
- name: Build Docker image
uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4.2.1
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@e42c5d1374329b9fccf4f6f9b26ee54ea3f928f8 # 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 }}"