-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 976 Bytes
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: ci
on:
push:
branches:
- "main"
jobs:
build:
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
- 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
docker compose --help
docker compose ps
- name: Check services
run: |
docker compose ps
- name: Check Docker compose
run: |
docker compose --version