Skip to content

[Do Not Merge] Try out uv #754

[Do Not Merge] Try out uv

[Do Not Merge] Try out uv #754

name: CI
on:
push:
branches:
- develop
- hotfix/**
- release/**
- test/**
pull_request:
workflow_dispatch:
jobs:
build:
name: build
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: 1
steps:
- uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: ~/.docker
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile')}}
- name: Set up environment
run: ./scripts/bootstrap
- run: ./scripts/cibuild
- run: ./scripts/cipublish
if: |
github.ref == 'refs/heads/develop' ||
startsWith(github.ref, 'refs/heads/hotfix/') ||
startsWith(github.ref, 'refs/heads/release/') ||
startsWith(github.ref, 'refs/heads/test/')
- run: |
docker-compose -f docker-compose.ci.yml run --rm terraform -c "
# Unset this to avoid a ProfileNotFound exception from the AWS CLI.
unset AWS_PROFILE
./scripts/infra plan
./scripts/infra apply
"
env:
IOW_BOUNDARY_TOOL_ROLLBAR_ACCESS_TOKEN: ${{ secrets.ROLLBAR_ACCESS_TOKEN }}
IOW_BOUNDARY_TOOL_DEPLOYMENT_ENVIRONMENT: staging
if: |
github.ref == 'refs/heads/develop' ||
startsWith(github.ref, 'refs/heads/hotfix/') ||
startsWith(github.ref, 'refs/heads/release/') ||
startsWith(github.ref, 'refs/heads/test/')