Skip to content

Commit 91a9c12

Browse files
authored
Merge branch 'main' into evolve_oidc_logout
2 parents bcdc2ea + 1e8e309 commit 91a9c12

File tree

241 files changed

+10578
-3949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+10578
-3949
lines changed

.github/actionlint.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
self-hosted-runner:
2+
# Labels of self-hosted runner in array of strings.
3+
labels:
4+
- kic-plus
5+
# Configuration variables in array of strings defined in your repository or
6+
# organization. `null` means disabling configuration variables check.
7+
# Empty array means no configuration variable is allowed.
8+
config-variables: null
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Certify Openshift Image
2+
description: This action will attempt to certify an image for use in Openshift
3+
4+
inputs:
5+
image:
6+
description: The image manifest to certify in the format <registry>/<repository>:<tag>
7+
required: true
8+
project_id:
9+
description: The certification project id
10+
required: true
11+
pyxis_token:
12+
description: The Pyxis API Token
13+
required: true
14+
preflight_version:
15+
description: The version of the preflight utility to install
16+
required: false
17+
default: 1.9.1
18+
platforms:
19+
description: A comma separated list of architectures in the image manifest to certify
20+
required: false
21+
default: ""
22+
23+
outputs:
24+
result:
25+
description: Did the certification succeed?
26+
value: ${{ steps.result.outputs.result == 0 && true || false }}
27+
28+
runs:
29+
using: composite
30+
steps:
31+
- name: Install openshift-preflight
32+
run: |
33+
curl -fsSL https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/download/${{ inputs.preflight_version }}/preflight-linux-amd64 --output preflight
34+
chmod +x preflight
35+
shell: bash
36+
37+
- name: Certify Images
38+
id: result
39+
run: |
40+
result=0
41+
if [ -z "${{ inputs.platforms }}" ]; then
42+
# list of platforms passed
43+
IFS=',' read -ra arch_list <<< "${{ inputs.platforms }}"
44+
for arch in "${arch_list[@]}"; do
45+
architecture=("${arch#*/}")
46+
./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --platform $architecture --submit
47+
if [ $? -ne 0 ]; then
48+
result=1
49+
fi
50+
done
51+
else
52+
# no platforms passed, this is either a manifest or a single platform image
53+
./preflight check container ${{ inputs.image }} --pyxis-api-token ${{ inputs.pyxis_token }} --certification-project-id ${{ inputs.project_id }} --submit
54+
result=$?
55+
fi
56+
echo "result=$result" >> $GITHUB_OUTPUT
57+
shell: bash
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Install Skopeo
2+
description: Install Skopeo from source on ubuntu runner
3+
4+
inputs:
5+
version:
6+
description: The Skopeo version to install
7+
default: v1.14.2
8+
required: false
9+
repo:
10+
description: The Skopeo repository
11+
default: github.com/containers/skopeo
12+
required: false
13+
14+
outputs:
15+
result:
16+
description: Did the installation succeed?
17+
value: ${{ steps.result.outputs.result == 0 && true || false }}
18+
19+
runs:
20+
using: composite
21+
steps:
22+
- name: Install Skopeo
23+
id: result
24+
run: |
25+
sudo apt-get -y update
26+
sudo apt install libgpgme-dev libassuan-dev libbtrfs-dev libdevmapper-dev pkg-config go-md2man
27+
sudo mkdir -p $GOPATH/src/${{ inputs.repo }}
28+
sudo git clone --depth 1 -b ${{ inputs.version }} https://${{ inputs.repo }} $GOPATH/src/${{ inputs.repo }}
29+
pushd $GOPATH/src/${{ inputs.repo }} && sudo make install
30+
popd
31+
skopeo --version
32+
echo "result=$?" >> $GITHUB_OUTPUT
33+
shell: bash

.github/config/config-gcr-retag

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export TARGET_REGISTRY=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/dev
2+
declare -a PLUS_TAG_POSTFIX_LIST=("" "-ubi" "-alpine" "-alpine-fips" "-mktpl" "-alpine-mktpl" "-alpine-mktpl-fips")
3+
declare -a NAP_WAF_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl" "-ubi-mktpl" "-alpine-fips")
4+
declare -a NAP_DOS_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl" "-ubi-mktpl")
5+
declare -a NAP_WAF_DOS_TAG_POSTFIX_LIST=("" "-ubi" "-mktpl" "-ubi-mktpl")
6+
declare -a ADDITIONAL_TAGS=()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export TARGET_REGISTRY=docker.io
2+
export TARGET_OSS_IMAGE_PREFIX="nginx/nginx-ingress"
3+
declare -a ADDITIONAL_TAGS=("latest" "${ADDITIONAL_TAG}")
4+
export PUBLISH_PLUS=false
5+
export PUBLISH_WAF=false
6+
export PUBLISH_DOS=false
7+
export PUBLISH_WAF_DOS=false

.github/config/config-oss-ecr

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export TARGET_REGISTRY=public.ecr.aws
2+
export TARGET_OSS_IMAGE_PREFIX="nginx/nginx-ingress"
3+
declare -a ADDITIONAL_TAGS=("latest" "${ADDITIONAL_TAG}")
4+
export PUBLISH_PLUS=false
5+
export PUBLISH_WAF=false
6+
export PUBLISH_DOS=false
7+
export PUBLISH_WAF_DOS=false
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export TARGET_REGISTRY=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release
2+
declare -a ADDITIONAL_TAGS=("latest" "${ADDITIONAL_TAG}")
3+
export PUBLISH_PLUS=false
4+
export PUBLISH_WAF=false
5+
export PUBLISH_DOS=false
6+
export PUBLISH_WAF_DOS=false

.github/config/config-oss-github

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export TARGET_REGISTRY=ghcr.io
2+
export TARGET_OSS_IMAGE_PREFIX="nginxinc/kubernetes-ingress"
3+
declare -a ADDITIONAL_TAGS=("latest" "${ADDITIONAL_TAG}")
4+
export PUBLISH_PLUS=false
5+
export PUBLISH_WAF=false
6+
export PUBLISH_DOS=false
7+
export PUBLISH_WAF_DOS=false

.github/config/config-oss-quay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export TARGET_REGISTRY=quay.io
2+
export TARGET_OSS_IMAGE_PREFIX="nginx/nginx-ingress"
3+
declare -a ADDITIONAL_TAGS=("latest" "${ADDITIONAL_TAG}")
4+
export PUBLISH_PLUS=false
5+
export PUBLISH_WAF=false
6+
export PUBLISH_DOS=false
7+
export PUBLISH_WAF_DOS=false

.github/config/config-plus-azure

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export TARGET_REGISTRY=nginxmktpl.azurecr.io
2+
export TARGET_PLUS_IMAGE_PREFIX="marketplaceimages/nginx-plus-ingress"
3+
export TARGET_NAP_WAF_IMAGE_PREFIX="marketplaceimages/nginx-plus-ingress-nap"
4+
export TARGET_NAP_DOS_IMAGE_PREFIX="marketplaceimages/nginx-plus-ingress-dos"
5+
export TARGET_NAP_WAF_DOS_IMAGE_PREFIX="marketplaceimages/nginx-plus-ingress-nap-dos"
6+
declare -a PLUS_TAG_POSTFIX_LIST=("")
7+
declare -a NAP_WAF_TAG_POSTFIX_LIST=("")
8+
declare -a NAP_DOS_TAG_POSTFIX_LIST=("")
9+
declare -a NAP_WAF_DOS_TAG_POSTFIX_LIST=("")
10+
declare -a ADDITIONAL_TAGS=()
11+
export PUBLISH_OSS=false

0 commit comments

Comments
 (0)