Skip to content

Commit 6515000

Browse files
committed
Low ubuntu
Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
1 parent 5919dcb commit 6515000

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/docker.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,27 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-20.04
11+
services:
12+
helloService:
13+
image: hello-world:latest
14+
options: --name hello-service
1115
steps:
1216
- name: Checkout
1317
uses: actions/checkout@v4
1418

15-
- name: Check Docker
19+
- name: Checkout docker
20+
uses: crazy-max/ghaction-setup-docker@v3
21+
22+
- name: check docker
1623
run: docker version
1724

18-
- name: Check Docker compose
25+
- name: Install Compose
26+
uses: ndeloof/install-compose-action@v0.0.1
27+
with:
28+
version: v2.1.0 # defaults to 'latest'
29+
legacy: true # will also install in PATH as `docker-compose`
30+
- name: Check version docker compose
1931
run: |
20-
docker compose version
21-
docker-compose version
32+
docker ps -la
33+
docker compose ps

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: "3.8"
2+
3+
services:
4+
hello:
5+
image: hello-world:latest
6+
container_name: hello_world_container

0 commit comments

Comments
 (0)