Skip to content

Commit

Permalink
Low ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed May 15, 2024
1 parent 5919dcb commit 5754027
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
services:
helloService:
image: hello-world:latest
options: --name hello-service
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/[email protected]
# 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 -la
docker exec -it hello-service /bin/bash
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: "3.8"

services:
hello:
image: hello-world:latest
container_name: hello_world_container

0 comments on commit 5754027

Please sign in to comment.