Files
docker-install/.github/workflows/ci.yml
T
Paweł Gronowski 955c0d7e1f rootless: Automatically populate TEST/STABLE version
When building the final install.sh script - fill the latest versions
based on Github releases.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-10 13:05:48 +01:00

44 lines
1.1 KiB
YAML

name: docker-install CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
os:
- ubuntu:22.04
- ubuntu:24.04
- quay.io/centos/centos:stream9
version:
- "27.5"
- ""
steps:
- uses: actions/checkout@v3
- name: Shellcheck
env:
GH_TOKEN: ${{ github.token }}
run: make shellcheck
- name: Check distribution
env:
GH_TOKEN: ${{ github.token }}
run: TEST_IMAGE=${{ matrix.os }} VERSION=${{ matrix.version }} make test
# This is a separate workflow step, because we need to check it outside of container (due to lsmod, iptables checks)
test-install-rootless:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Install rootless
env:
GH_TOKEN: ${{ github.token }}
run: |
sudo sh -c 'echo 0 > /proc/sys/kernel/apparmor_restrict_unprivileged_userns'
make build/test/rootless-install.sh
FORCE_ROOTLESS_INSTALL=1 ./build/test/rootless-install.sh