Skip to content

Add codebuild integrations for our workflows #2737

Add codebuild integrations for our workflows

Add codebuild integrations for our workflows #2737

Workflow file for this run

name: Build
on:
push:
branches: ['main', 'release/**']
paths:
- '**'
- '!docs/**' # ignore docs changes
- '!**.md' # ignore markdown changes
pull_request:
branches: ['main', 'release/**']
paths:
- '.github/workflows/build.yml'
- '**.go'
- 'go.*'
- 'cmd/go.*'
- 'Makefile'
- 'Dockerfile'
- 'integration/**'
- 'scripts/**'
env:
GO_VERSION: '1.21.10'
jobs:
test-on-codebuild:
if: github.repository == 'awslabs/soci-snapshotter'
runs-on: codebuild-soci-snapshotter-build-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make
- run: make test
test-on-fork:
if: github.repository != 'awslabs/soci-snapshotter'
runs-on: codebuild-test-codebuild2-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make
- run: make test
integration-on-codebuild:
if: github.repository == 'awslabs/soci-snapshotter'
runs-on: codebuild-soci-snapshotter-build-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
containerd: ["1.6.30", "1.7.14"]
env:
DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make integration
integration-on-fork:
if: github.repository != 'awslabs/soci-snapshotter'
runs-on: codebuild-test-codebuild2-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
containerd: ["1.6.30", "1.7.14"]
env:
DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make integration