diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e3cce90..56996ec 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,15 +7,27 @@ 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: 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 compose ps