[wip] ci: add Ubuntu 20.04 image #5
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
name: Test the Sil Kit Docker images | |
on: | |
pull_request: | |
branch: main | |
jobs: | |
ubuntu-1804: | |
name: Build and test SIL Kit using the Ubuntu 18.04 image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Build the Ubuntu 18.04 image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./containers/ci-ubuntu-18.04/ | |
build-contexts: | | |
utils=./utils/ | |
file: ./containers/ci-ubuntu-18.04/Dockerfile | |
push: false | |
load: true | |
tags: sil-kit-test:latest | |
- name: Test the image | |
run: | | |
docker run -itd --name emmy_noether sil-kit-test:latest /bin/bash | |
docker cp ./utils/image_tests.sh emmy_noether:/home/image_tests.sh | |
docker exec -w /home/ emmy_noether sh image_tests.sh 8 | |
ubuntu-2004: | |
name: Build and test SIL Kit using the Ubuntu 20.04 image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Build the Ubuntu 20.04 image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./containers/ci-ubuntu-20.04/ | |
build-contexts: | | |
utils=./utils/ | |
file: ./containers/ci-ubuntu-20.04/Dockerfile | |
push: false | |
load: true | |
tags: sil-kit-test:latest | |
- name: Test the image | |
run: | | |
docker run -itd --name emmy_noether sil-kit-test:latest /bin/bash | |
docker cp ./utils/image_tests.sh emmy_noether:/home/image_tests.sh | |
docker exec -w /home/ emmy_noether sh image_tests.sh 9 | |