message: ci: build the docker image and on master upload it to ecr
diff: @@ -21,3 +21,25 @@ jobs:
  - name: Test docs.rs
  run: cargo test -- --test-threads=1
  +
  + docker:
  + name: Docker
  + runs-on: ubuntu-latest
  + steps:
  +
  + - uses: actions/checkout@master
  + with:
  + fetch-depth: 2
  +
  + - name: Build the Docker image
  + run: docker build -t docsrs .
  +
  + - name: Upload the Docker image to ECR
  + uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
  + with:
  + image: docsrs
  + repository: docsrs
  + region: us-west-1
  + aws_access_key_id: "${{ secrets.aws_access_key_id }}"
  + aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"
  + if: github.ref == 'refs/heads/master'
  