-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 2.51 KB
/
docker-image-test-amd64-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: 'Test multi-platform Docker images'
run-name: '${{ github.ref_type }}_${{ github.ref_name }}@${{ github.triggering_actor }}'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
jobs:
test-on-linux:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
container:
image: docker.io/developmententity/aws-cloud-tools:initial
options:
-v /dev:/dev
steps:
- name: 'Docker image test (amd64)'
run: |
ansible --version
aws --version
session-manager-plugin --version
sam --version
helm version
kops version
kubectl version --client
terraform version
terragrunt --version
test-on-mac-via-colima:
runs-on: macos-latest
steps:
- name: 'Install Colima and Docker'
run: |
brew install docker docker-compose colima
colima start --arch arm64
- name: Docker info
run: |
docker info
- name: 'Pull Docker image from Docker Hub'
run: |
docker pull docker.io/developmententity/aws-cloud-tools:initial
- name: 'Run Docker image test (arm64)'
run: |
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "ansible --version"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "aws --version"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "session-manager-plugin --version"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "sam --version"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "helm version"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "kops version"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "kubectl version --client"
docker run --entrypoint "/bin/sh" --network=none --rm --name aws-cloud-test docker.io/developmententity/aws-cloud-tools:initial -c "terragrunt --version"