-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From now on, we will only publish the new "split" images (e.g., antrea/antrea-agent-ubuntu and antrea/antrea-controller-ubuntu). For #4832 Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
a262fc9
commit ed325d0
Showing
17 changed files
with
118 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ jobs: | |
if: github.repository == 'antrea-io/antrea' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Find greatest Antrea version | ||
id: find-antrea-greatest-version | ||
env: | ||
|
@@ -32,33 +31,56 @@ jobs: | |
- name: Pull Antrea Docker images | ||
id: pull | ||
run: | | ||
docker pull antrea/antrea-ubuntu:latest | ||
docker pull antrea/antrea-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} | ||
- name: Run Trivy vulnerability scanner on latest Antrea Docker image | ||
docker pull antrea/antrea-agent-ubuntu:latest | ||
docker pull antrea/antrea-agent-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} | ||
docker pull antrea/antrea-controller-ubuntu:latest | ||
docker pull antrea/antrea-controller-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} | ||
- name: Run Trivy vulnerability scanner on latest antrea-agent Docker image | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
# we cannot use .trivy.yml as we need to override some config parameters | ||
# and that is not supported by aquasecurity/trivy-action | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-ubuntu:latest' | ||
image-ref: 'antrea/antrea-agent-ubuntu:latest' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
# whereabouts project doesn't upgrade dependencies frequently | ||
skip-files: '/opt/cni/bin/whereabouts' | ||
format: 'table' | ||
output: 'trivy.latest.txt' | ||
- name: Run Trivy vulnerability scanner on Antrea Docker image for latest released version | ||
- name: Run Trivy vulnerability scanner on latest antrea-controller Docker image | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
# we cannot use .trivy.yml as we need to override some config parameters | ||
# and that is not supported by aquasecurity/trivy-action | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-controller-ubuntu:latest' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
format: 'table' | ||
output: 'trivy.latest.txt' | ||
- name: Run Trivy vulnerability scanner on antrea-agent Docker image for latest released version | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-agent-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
format: 'table' | ||
output: 'trivy.${{ steps.find-antrea-greatest-version.outputs.antrea_version }}.txt' | ||
- name: Run Trivy vulnerability scanner on antrea-controller Docker image for latest released version | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' | ||
image-ref: 'antrea/antrea-controller-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
skip-files: '/opt/cni/bin/whereabouts' | ||
format: 'table' | ||
output: 'trivy.${{ steps.find-antrea-greatest-version.outputs.antrea_version }}.txt' | ||
- name: Upload Trivy scan reports | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Scan Antrea Docker image for vulnerabilities before release | ||
name: Scan Antrea Docker images for vulnerabilities before release | ||
|
||
on: | ||
pull_request: | ||
|
@@ -14,12 +14,6 @@ jobs: | |
- name: Build Antrea Docker image | ||
run: | | ||
./hack/build-antrea-linux-all.sh --pull | ||
- name: Run Trivy vulnerability scanner on Antrea unified Docker image | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-ubuntu:latest' | ||
trivy-config: '.trivy.yml' | ||
- name: Run Trivy vulnerability scanner on the antrea-agent Docker image | ||
uses: aquasecurity/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright 2022 Antrea Authors | ||
# Copyright 2024 Antrea Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -16,9 +16,11 @@ ARG BUILD_TAG | |
FROM antrea/base-ubuntu:${BUILD_TAG} | ||
|
||
LABEL maintainer="Antrea <[email protected]>" | ||
LABEL description="The Docker image to deploy the Antrea CNI." | ||
LABEL description="The development Docker image to deploy the antrea-agent." | ||
|
||
USER root | ||
|
||
COPY build/images/scripts/* /usr/local/bin/ | ||
COPY bin/* /usr/local/bin/ | ||
COPY bin/antrea-agent /usr/local/bin/ | ||
COPY bin/antrea-cni /usr/local/bin/ | ||
COPY bin/antctl /usr/local/bin/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2024 Antrea Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL maintainer="Antrea <[email protected]>" | ||
LABEL description="The development Docker image to deploy the antrea-controller." | ||
|
||
USER root | ||
|
||
COPY bin/antrea-controller /usr/local/bin/ | ||
COPY bin/antctl /usr/local/bin/ |
Oops, something went wrong.