ci: run on ubuntu-latest; assert docker availability instead of installing
This commit is contained in:
parent
b3cb20ab41
commit
42e79e5698
@ -5,7 +5,7 @@ on:
|
|||||||
- '*'
|
- '*'
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -41,15 +41,15 @@ jobs:
|
|||||||
git rev-parse --abbrev-ref HEAD || true
|
git rev-parse --abbrev-ref HEAD || true
|
||||||
if [ -f .gitmodules ]; then echo ".gitmodules present"; cat .gitmodules; else echo "NO .gitmodules"; fi
|
if [ -f .gitmodules ]; then echo ".gitmodules present"; cat .gitmodules; else echo "NO .gitmodules"; fi
|
||||||
git submodule status || true
|
git submodule status || true
|
||||||
- name: Install docker client
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get install -y docker.io
|
|
||||||
- name: Docker info
|
- name: Docker info
|
||||||
run: |
|
run: |
|
||||||
which docker || true
|
which docker || true
|
||||||
docker version || true
|
if ! command -v docker >/dev/null 2>&1; then
|
||||||
docker info || true
|
echo "Docker n'est pas disponible sur ce runner (ubuntu-latest)." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
docker version
|
||||||
|
docker info
|
||||||
- name: Build and push images
|
- name: Build and push images
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.4nkweb.com
|
REGISTRY: git.4nkweb.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user