From 132165ba6f7c5a8de81dc21b5e165d19ba3c511f 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 | 21 ++++++++++++++++----- docker-compose.yml | 6 ++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 docker-compose.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e3cce90..3f1347b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,15 +7,26 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 + services: + helloService: + image: hello-world:latest steps: - name: Checkout uses: actions/checkout@v4 - - name: Check Docker + # - name: Checkout docker + # uses: papodaca/install-docker-action@main + + - name: check docker run: docker version - - name: Check Docker compose + # - name: Install Compose + # uses: ndeloof/install-compose-action@v0.0.1 + # with: + # version: v2.1.0 # defaults to 'latest' + # legacy: true # will also install in PATH as `docker-compose` + - name: Check version docker compose run: | - docker compose version - docker-compose version + docker ps + docker compose ps --all diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6246ffe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: "3.8" + +services: + hello: + image: hello-world:latest + container_name: hello_world_container