Skip to content

Commit

Permalink
ci: makefile target for buildling fips etcd images
Browse files Browse the repository at this point in the history
  • Loading branch information
supershal committed Nov 7, 2023
1 parent 1e43528 commit f204346
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 96 deletions.
191 changes: 95 additions & 96 deletions .github/workflows/aws-e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Runs AWS tests when pull request opened, repopened or synchronized
name: E2E Tests - Build AWS AMI
name: E2E Tests - Build All AWS AMI
on:
workflow_dispatch:

workflow_dispatch:
workflow_call:

permissions:
Expand All @@ -17,100 +16,100 @@ jobs:
matrix:
include:
# CentoOS 7.9
# - os: "centos 7.9"
# buildConfig: "basic"
# - os: "centos 7.9"
# buildConfig: "fips"
# - os: "centos 7.9"
# buildConfig: "nvidia"
- os: "centos 7.9"
buildConfig: "basic"
- os: "centos 7.9"
buildConfig: "fips"
- os: "centos 7.9"
buildConfig: "nvidia"
- os: "centos 7.9"
buildConfig: "offline"
- os: "centos 7.9"
buildConfig: "offline-fips"
- os: "centos 7.9"
buildConfig: "offline-nvidia"
# RHEL 7.9
- os: "redhat 7.9"
buildConfig: "basic"
- os: "redhat 7.9"
buildConfig: "fips"
- os: "redhat 7.9"
buildConfig: "nvidia"
- os: "redhat 7.9"
buildConfig: "offline"
- os: "redhat 7.9"
buildConfig: "offline-fips"
- os: "redhat 7.9"
buildConfig: "offline-nvidia"
# RHEL 8.4
- os: "redhat 8.4"
buildConfig: "basic"
- os: "redhat 8.4"
buildConfig: "fips"
- os: "redhat 8.4"
buildConfig: "nvidia"
- os: "redhat 8.4"
buildConfig: "offline"
- os: "redhat 8.4"
buildConfig: "offline-fips"
- os: "redhat 8.4"
buildConfig: "offline-nvidia"
# RHEL 8.6
- os: "redhat 8.6"
buildConfig: "basic"
- os: "redhat 8.6"
buildConfig: "fips"
- os: "redhat 8.6"
buildConfig: "nvidia"
- os: "redhat 8.6"
buildConfig: "offline"
- os: "redhat 8.6"
buildConfig: "offline-fips"
- os: "redhat 8.6"
buildConfig: "offline-nvidia"
# 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"
# SLES 15
- os: "sles 15"
buildConfig: "basic"
- os: "sles 15"
buildConfig: "nvidia"
# Oracle 7.9
- os: "oracle 7.9"
buildConfig: "basic"
- os: "oracle 7.9"
buildConfig: "fips"
- os: "oracle 7.9"
buildConfig: "rhck"
# Flatcar
- os: "flatcar"
buildConfig: "basic"
# Ubuntu 18.04
- os: "ubuntu 18.04"
buildConfig: "basic"
# Ubuntu 20.04
- os: "ubuntu 20.04"
buildConfig: "basic"
- os: "ubuntu 20.04"
buildConfig: "nvidia"
# Rocky 9.1
- os: "rocky 9.1"
buildConfig: "basic"
- os: "rocky 9.1"
buildConfig: "offline"
# - os: "centos 7.9"
# buildConfig: "offline-fips"
# - os: "centos 7.9"
# buildConfig: "offline-nvidia"
# # RHEL 7.9
# - os: "redhat 7.9"
# buildConfig: "basic"
# - os: "redhat 7.9"
# buildConfig: "fips"
# - os: "redhat 7.9"
# buildConfig: "nvidia"
# - os: "redhat 7.9"
# buildConfig: "offline"
# - os: "redhat 7.9"
# buildConfig: "offline-fips"
# - os: "redhat 7.9"
# buildConfig: "offline-nvidia"
# # RHEL 8.4
# - os: "redhat 8.4"
# buildConfig: "basic"
# - os: "redhat 8.4"
# buildConfig: "fips"
# - os: "redhat 8.4"
# buildConfig: "nvidia"
# - os: "redhat 8.4"
# buildConfig: "offline"
# - os: "redhat 8.4"
# buildConfig: "offline-fips"
# - os: "redhat 8.4"
# buildConfig: "offline-nvidia"
# # RHEL 8.6
# - os: "redhat 8.6"
# buildConfig: "basic"
# - os: "redhat 8.6"
# buildConfig: "fips"
# - os: "redhat 8.6"
# buildConfig: "nvidia"
# - os: "redhat 8.6"
# buildConfig: "offline"
# - os: "redhat 8.6"
# buildConfig: "offline-fips"
# - os: "redhat 8.6"
# buildConfig: "offline-nvidia"
# # 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"
# # SLES 15
# - os: "sles 15"
# buildConfig: "basic"
# - os: "sles 15"
# buildConfig: "nvidia"
# # Oracle 7.9
# - os: "oracle 7.9"
# buildConfig: "basic"
# - os: "oracle 7.9"
# buildConfig: "fips"
# - os: "oracle 7.9"
# buildConfig: "rhck"
# # Flatcar
# - os: "flatcar"
# buildConfig: "basic"
# # Ubuntu 18.04
# - os: "ubuntu 18.04"
# buildConfig: "basic"
# # Ubuntu 20.04
# - os: "ubuntu 20.04"
# buildConfig: "basic"
# - os: "ubuntu 20.04"
# buildConfig: "nvidia"
# # Rocky 9.1
# - os: "rocky 9.1"
# buildConfig: "basic"
# - os: "rocky 9.1"
# buildConfig: "offline"
runs-on:
- self-hosted
- small
Expand All @@ -122,7 +121,7 @@ jobs:
fetch-depth: 0

- name: Build AWS AMI for ${{ matrix.os }} with ${{ matrix.buildConfig }} configuration
uses: ./.github/composite/aws-e2e/
uses: ./.github/workflows/aws-e2e.yaml
with:
os: ${{ matrix.os }}
buildConfig: ${{ matrix.buildConfig}}
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/trigger-aws-e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Manually triggered E2E Tests - Build AWS AMI
on:
workflow_dispatch:
inputs:
os:
description: "Name of the operating system"
required: true
type: string
buildConfig:
description: "Build configuation options"
required: true
type: choice
default: basic
options:
- basic
- fips
- offline
- nvidia
- offline-fips
- offline-nvidia
- rhck
- fips-kernel
workflow_call:
inputs:
os:
description: "Name of the operating system"
required: true
type: string
buildConfig:
description: "Build configuation options"
type: string

permissions:
contents: read
id-token: write

jobs:
rune2e:
runs-on:
- self-hosted
- small
continue-on-error: false
steps:
- name: Checkout konvoy-image-builder repository
uses: actions/checkout@v4
with:
repository: mesosphere/konvoy-image-builder
fetch-depth: 0

- name: Build AWS AMI for ${{ inputs.os }} with ${{ inputs.buildConfig }} configuration
uses: mesosphere/konvoy-image-builder/.github/composite/aws-e2e/
with:
os: ${{ inputs.os }}
buildConfig: ${{ inputs.buildConfig}}
registry_mirror_url: ${{ secrets.D2IQ_DOCKER_MIRROR_REGISTRY}}
docker_username: ${{ secrets.NEXUS_USERNAME }}
docker_password: ${{ secrets.NEXUS_PASSWORD }}
aws_runner_role_arn: "arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/konvoy-image-builder"
redhat_user: ${{ secrets.RHSM_USER }}
redhat_password: ${{ secrets.RHSM_PASS }}
github_token: ${{ secrets.MESOSPHERECI_USER_TOKEN }}

0 comments on commit f204346

Please sign in to comment.