From aaa5d28ac243770eeb1c6c3fa01f5d8e30c9dc94 Mon Sep 17 00:00:00 2001 From: "sagargurung1001@gmail.com" Date: Wed, 15 May 2024 11:41:43 +0545 Subject: [PATCH] Low ubuntu Signed-off-by: sagargurung1001@gmail.com --- .github/workflows/docker.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e3cce90..37fc5ef 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,15 +7,35 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 + container: + image: ubuntu:latest + services: + helloService: + image: hello-world:latest steps: - name: Checkout uses: actions/checkout@v4 + - name: Install Docker + run: | + apt-get update + apt-get install -y docker.io + apt-get install -y curl + - name: Check Docker - run: docker version + run: docker --version + + - name: Check Docker Compose + run: | + curl -L "https://github.com/docker/compose/releases/download/2.27.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + chmod +x /usr/local/bin/docker-compose + docker compose --version + + - name: Check services + run: | + docker-compose ps - name: Check Docker compose run: | - docker compose version - docker-compose version + docker compose --version