File tree Expand file tree Collapse file tree 6 files changed +55
-17
lines changed Expand file tree Collapse file tree 6 files changed +55
-17
lines changed Original file line number Diff line number Diff line change 17
17
18
18
jobs :
19
19
benchmark :
20
- runs-on : codebuild-soci-visualization-workflow-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
20
+ # skip running benchmarks in forks
21
+ if : github.repository == 'awslabs/soci-snapshotter'
22
+ runs-on : codebuild-soci-snapshotter-benchmark-visualization-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
21
23
steps :
22
24
- name : Checkout main branch
23
25
uses : actions/checkout@v4
37
39
path : ${{github.workspace}}/benchmark/performanceTest/output/results.json
38
40
39
41
download-and-convert-benchmark-result-to-visualization-data :
40
- runs-on : codebuild-soci-visualization-workflow-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
42
+ if : github.repository == 'awslabs/soci-snapshotter'
43
+ runs-on : codebuild-soci-snapshotter-benchmark-visualization-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
41
44
needs : benchmark
42
45
steps :
43
46
- name : Checkout main branch
66
69
matrix : ${{ steps.set-matrix.outputs.files }}
67
70
68
71
push-benchmark-result-gh-pages :
72
+ if : github.repository == 'awslabs/soci-snapshotter'
69
73
name : Push benchmark result to Github-pages
70
- runs-on : codebuild-soci-visualization-workflow -${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
74
+ runs-on : codebuild-soci-snapshotter-benchmark-visualization -${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
71
75
needs : download-and-convert-benchmark-result-to-visualization-data
72
76
strategy :
73
77
matrix :
Original file line number Diff line number Diff line change 23
23
GO_VERSION : ' 1.21.10'
24
24
25
25
jobs :
26
- test :
27
- runs-on : codebuild-soci-build-workflow-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
26
+ test-on-codebuild :
27
+ if : github.repository == 'awslabs/soci-snapshotter'
28
+ runs-on : codebuild-soci-snapshotter-build-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
28
29
timeout-minutes : 15
29
30
steps :
30
31
- uses : actions/checkout@v4
33
34
go-version : ${{ env.GO_VERSION }}
34
35
- run : make
35
36
- run : make test
36
- integration :
37
- runs-on : codebuild-soci-build-workflow-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
37
+
38
+ test-on-fork :
39
+ if : github.repository != 'awslabs/soci-snapshotter'
40
+ runs-on : ubuntu-22.04
41
+ timeout-minutes : 15
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - uses : actions/setup-go@v5
45
+ with :
46
+ go-version : ${{ env.GO_VERSION }}
47
+ - run : make
48
+ - run : make test
49
+
50
+ integration-on-codebuild :
51
+ if : github.repository == 'awslabs/soci-snapshotter'
52
+ runs-on : codebuild-soci-snapshotter-build-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
53
+ timeout-minutes : 40
54
+ strategy :
55
+ fail-fast : false
56
+ matrix :
57
+ containerd : ["1.6.30", "1.7.14"]
58
+ env :
59
+ DOCKER_BUILD_ARGS : " CONTAINERD_VERSION=${{ matrix.containerd }}"
60
+ steps :
61
+ - uses : actions/checkout@v4
62
+ - uses : actions/setup-go@v5
63
+ with :
64
+ go-version : ${{ env.GO_VERSION }}
65
+ - run : make integration
66
+
67
+ integration-on-fork :
68
+ if : github.repository != 'awslabs/soci-snapshotter'
69
+ runs-on : ubuntu-22.04
38
70
timeout-minutes : 40
39
71
strategy :
40
72
fail-fast : false
Original file line number Diff line number Diff line change 20
20
21
21
# Don't bother bumping deps on forks.
22
22
if : ${{ github.repository == 'awslabs/soci-snapshotter' || github.event_name == 'workflow_dispatch' }}
23
- runs-on : codebuild-soci-bump-dependencies-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-medium
23
+ runs-on : ubuntu-22.04
24
24
25
25
steps :
26
26
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
check :
12
- runs-on : codebuild-soci-comparision-test-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
12
+ if : github.repository == 'awslabs/soci-snapshotter'
13
+ runs-on : codebuild-soci-snapshotter-comparison-test-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-xlarge
13
14
steps :
14
15
- uses : actions/checkout@v4
15
16
- uses : actions/setup-go@v5
Original file line number Diff line number Diff line change 12
12
13
13
jobs :
14
14
check :
15
- runs-on : codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-small
15
+ runs-on : ubuntu-22.04
16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
with :
32
32
- run : PATH=$PATH:$(pwd) ./scripts/check-flatc.sh
33
33
34
34
git-secrets :
35
- runs-on : codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-small
35
+ runs-on : ubuntu-22.04
36
36
steps :
37
37
- name : Pull latest awslabs/git-secrets repo
38
38
uses : actions/checkout@v4
54
54
strategy :
55
55
matrix :
56
56
working_dir : ['.', 'cmd']
57
- runs-on : codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-small
57
+ runs-on : ubuntu-22.04
58
58
steps :
59
59
- uses : actions/checkout@v4
60
60
- uses : golangci/golangci-lint-action@v6
@@ -64,13 +64,14 @@ jobs:
64
64
65
65
yamllint :
66
66
name : yamllint-lint
67
- runs-on : codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-small
67
+ runs-on : ubuntu-22.04
68
68
steps :
69
69
- uses : actions/checkout@v4
70
+ - run : pip install yamllint
70
71
- run : yamllint .
71
72
72
73
shellcheck :
73
- runs-on : codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-small
74
+ runs-on : ubuntu-22.04
74
75
container : koalaman/shellcheck-alpine:v0.10.0
75
76
steps :
76
77
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ permissions:
20
20
21
21
jobs :
22
22
generate-artifacts :
23
- runs-on : codebuild-soci-release-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-xlarge
23
+ runs-on : ubuntu-22.04
24
24
env :
25
25
# Set during setup.
26
26
RELEASE_TAG : ' '
60
60
61
61
validate-artifacts :
62
62
needs : generate-artifacts
63
- runs-on : codebuild-soci-release-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-xlarge
63
+ runs-on : ubuntu-22.04
64
64
steps :
65
65
- uses : actions/checkout@v4
66
66
- uses : actions/download-artifact@v4
72
72
create-release :
73
73
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
74
74
needs : [generate-artifacts, validate-artifacts]
75
- runs-on : codebuild-soci-release-workflow-${{ github.run_id }}-${{ github.run_attempt }}- ubuntu-7.0-xlarge
75
+ runs-on : ubuntu-22.04
76
76
steps :
77
77
- uses : actions/checkout@v4
78
78
- uses : actions/download-artifact@v4
You can’t perform that action at this time.
0 commit comments