-
Notifications
You must be signed in to change notification settings - Fork 21
126 lines (117 loc) · 3.74 KB
/
aws-e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Runs AWS tests when pull request opened, repopened or synchronized
name: E2E Tests - Build AWS AMI
on:
workflow_dispatch:
workflow_call:
permissions:
contents: read
id-token: write
jobs:
rune2e:
strategy:
fail-fast: false
max-parallel: 30
matrix:
include:
# # RHEL 8.8
# - os: "redhat 8.8"
# buildConfig: "basic"
# - os: "redhat 8.8"
# buildConfig: "fips"
# - os: "redhat 8.8"
# buildConfig: "fips-kernel"
# - os: "redhat 8.8"
# buildConfig: "nvidia"
# - os: "redhat 8.8"
# buildConfig: "offline"
# - os: "redhat 8.8"
# buildConfig: "offline-fips"
# - os: "redhat 8.8"
# buildConfig: "offline-nvidia"
# #RHEL 8.10
# - os: "redhat 8.10"
# buildConfig: "basic"
# - os: "redhat 8.10"
# buildConfig: "fips"
# - os: "redhat 8.10"
# buildConfig: "nvidia"
# - os: "redhat 8.10"
# buildConfig: "offline"
# - os: "redhat 8.10"
# buildConfig: "offline-fips"
# - os: "redhat 8.10"
# buildConfig: "offline-nvidia"
# # Oracle 8.9
# - os: "oracle 8.9"
# buildConfig: "basic"
# - os: "oracle 8.9"
# buildConfig: "fips"
# - os: "oracle 8.9"
# buildConfig: "rhck"
# # Flatcar
# - os: "flatcar"
# buildConfig: "basic"
# # Ubuntu 20.04
# - os: "ubuntu 20.04"
# buildConfig: "basic"
# - os: "ubuntu 20.04"
# buildConfig: "nvidia"
# - os: "ubuntu 20.04"
# buildConfig: "offline"
# Ubuntu 22.04
- os: "ubuntu 22.04"
buildConfig: "basic"
- os: "ubuntu 22.04"
buildConfig: "nvidia"
- os: "ubuntu 22.04"
buildConfig: "offline"
# # Rocky 9.1
# - os: "rocky 9.1"
# buildConfig: "basic"
# - os: "rocky 9.1"
# buildConfig: "offline"
runs-on:
- self-hosted
- medium
continue-on-error: false
steps:
- name: Checkout konvoy-image-builder repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: Login to dockerhub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Login to D2iQ's Mirror Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.D2IQ_DOCKER_MIRROR_REGISTRY}}
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}
- name: Setup buildkit
uses: docker/setup-buildx-action@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/konvoy-image-builder
aws-region: us-west-2
- name: Run E2E test for ${{ matrix.os }} with ${{ matrix.buildConfig }} configuration
uses: magefile/mage-action@v3
with:
version: latest
args: runE2e "${{ matrix.os }}" "${{ matrix.buildConfig }}" aws true
env:
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
RHSM_ACTIVATION_KEY: ${{ secrets.RHSM_ACTIVATION_KEY }}
RHSM_ORG_ID: ${{ secrets.RHSM_ORG_ID }}
- name: Run make destroy to clean up failed tests
if: ${{ always() }}
run: make infra.aws.destroy || true