File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
supported-platform-matrix :
10
10
name : Supported processor platforms
11
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-22.04
12
12
outputs :
13
13
platform : ${{ steps.supported-platform-matrix.outputs.platform }}
14
14
steps :
17
17
uses : WyriHaximus/github-action-oci-image-supported-platforms@main
18
18
lint-dockerfile :
19
19
name : Lint Dockerfile
20
- runs-on : ubuntu-latest
20
+ runs-on : ubuntu-22.04
21
21
steps :
22
22
- uses : actions/checkout@v4
23
23
- name : Lint Dockerfile
34
34
needs :
35
35
- supported-platform-matrix
36
36
- lint-dockerfile
37
- runs-on : ubuntu-latest
37
+ runs-on : ubuntu-22.04
38
38
steps :
39
39
- name : Prepare
40
40
run : |
66
66
needs :
67
67
- supported-platform-matrix
68
68
- build-docker-image
69
- runs-on : ubuntu-latest
69
+ runs-on : ubuntu-22.04
70
70
steps :
71
71
- name : Prepare
72
72
run : |
89
89
fail-fast : false
90
90
matrix :
91
91
platform : ${{ fromJson(needs.supported-platform-matrix.outputs.platform) }}
92
- runs-on : ubuntu-latest
92
+ runs-on : ubuntu-22.04
93
93
steps :
94
94
- name : Prepare
95
95
run : |
@@ -104,15 +104,18 @@ jobs:
104
104
path : /tmp/docker-image
105
105
- run : docker load --input /tmp/docker-image/docker_image-${{ env.PLATFORM_PAIR }}.tar
106
106
- run : docker image ls -a
107
- - run : ./tests.sh "${DOCKER_IMAGE}:${{ env.PLATFORM_PAIR }}"
107
+ - uses : WyriHaximus/github-action-testinfra@main
108
+ with :
109
+ image : ${{ env.DOCKER_IMAGE }}:${{ env.PLATFORM_PAIR }}
110
+ flags : --platform="${{ matrix.platform }}"
108
111
push-image :
109
112
if : (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main'
110
113
name : Push
111
114
needs :
112
115
- supported-platform-matrix
113
116
- scan-vulnerability
114
117
- tests
115
- runs-on : ubuntu-latest
118
+ runs-on : ubuntu-22.04
116
119
services :
117
120
registry :
118
121
image : registry:2
Original file line number Diff line number Diff line change @@ -9,17 +9,21 @@ RUN (echo 'DPkg::Post-Invoke {"/bin/rm -f /var/cache/apt/archives/*.deb || true"
9
9
apt-get update &&\
10
10
apt-get upgrade -y &&\
11
11
apt-get install -y curl wget make git unzip gnupg software-properties-common jq &&\
12
+
12
13
# # TerraForm
13
14
(wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null) &&\
14
15
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint &&\
15
16
(echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list) &&\
16
17
apt-get update &&\
17
18
apt-get install -y terraform &&\
19
+
18
20
# # AWS CLI
19
21
curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "/tmp/awscliv2.zip" &&\
20
22
unzip /tmp/awscliv2.zip &&\
21
23
./aws/install &&\
22
24
rm /tmp/* -Rf &&\
25
+
26
+ # # Helm
23
27
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 &&\
24
28
chmod 700 get_helm.sh &&\
25
29
./get_helm.sh &&\
You can’t perform that action at this time.
0 commit comments