Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/*] Add ARM arch verification to CI #42269

Merged
merged 3 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
run: |
if [[ -d "${{ matrix.container }}" ]]; then
name="$(echo "${{ matrix.container }}" | awk -F '/' '{print $2}')"
branch="$(echo "${{ matrix.container }}" | awk -F '/' '{print $3}')"
tag=""
if [[ "${{ github.event.pull_request.user.login }}" == "bitnami-bot" ]]; then
tag="$(grep -oE "org.opencontainers.image.ref.name=\".+\"" ${{ matrix.container }}/Dockerfile | sed -nr "s|org.opencontainers.image.ref.name=\"(.+)\"|\1|p")"
Expand All @@ -91,8 +92,13 @@ jobs:
echo "No tag found for: ${{ matrix.container }}"
exit 1
else
dsl_path="${name}"
if [[ -d ".vib/${dsl_path}/${branch}" ]]; then
dsl_path="${dsl_path}/${branch}"
fi
echo "tag=${tag}" >> $GITHUB_OUTPUT
echo "name=${name}" >> $GITHUB_OUTPUT
echo "dsl_path=${dsl_path}" >> $GITHUB_OUTPUT
echo "result=ok" >> $GITHUB_OUTPUT
fi
else
Expand All @@ -103,12 +109,12 @@ jobs:
name: Verify
if: ${{ steps.get-container-metadata.outputs.result == 'ok' }}
with:
pipeline: ${{ steps.get-container-metadata.outputs.name }}/vib-verify.json
pipeline: ${{ steps.get-container-metadata.outputs.dsl_path }}/vib-verify.json
env:
# Path with docker resources
VIB_ENV_PATH: ${{ matrix.container }}
# Container name
VIB_ENV_CONTAINER: ${{ steps.get-container-metadata.outputs.name }}
VIB_ENV_CONTAINER: ${{ steps.get-container-metadata.outputs.name }}
VIB_ENV_TAG: ${{ steps.get-container-metadata.outputs.tag }}
verification-summary:
# Ensure all containers passed the verification
Expand Down
6 changes: 5 additions & 1 deletion .vib/acmesolver/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/airflow-exporter/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion .vib/airflow-scheduler/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64"
]
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion .vib/airflow-worker/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64"
]
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion .vib/airflow/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/alertmanager/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/apache-exporter/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/apache/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/apisix-dashboard/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/apisix-ingress-controller/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/apisix/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/appsmith/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/argo-cd/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/argo-workflow-cli/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/argo-workflow-controller/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/argo-workflow-exec/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion .vib/aspnet-core/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64"
]
}
},
{
Expand Down
14 changes: 11 additions & 3 deletions .vib/attu/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down Expand Up @@ -49,14 +53,18 @@
"action_id": "trivy",
"params": {
"threshold": "CRITICAL",
"vuln_type": ["OS"]
"vuln_type": [
"OS"
]
}
},
{
"action_id": "grype",
"params": {
"threshold": "CRITICAL",
"package_type": ["OS"]
"package_type": [
"OS"
]
}
}
]
Expand Down
6 changes: 5 additions & 1 deletion .vib/aws-cli/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/azure-cli/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/blackbox-exporter/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/cainjector/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/cassandra-exporter/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion .vib/cassandra/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/cert-manager-webhook/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
6 changes: 5 additions & 1 deletion .vib/cert-manager/vib-verify.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
},
"architectures": [
"linux/amd64",
"linux/arm64"
]
}
},
{
Expand Down
Loading
Loading