Skip to content

Commit b3abc1b

Browse files
author
tudor
committed
simple test of docker on github actions
1 parent 6050ce3 commit b3abc1b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docker_test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Docker on GitHub Actions
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
push_container:
11+
runs-on: ubuntu-latest
12+
services:
13+
docker:
14+
image: docker:dind
15+
options: --privileged
16+
ports:
17+
- 2375:2375
18+
container:
19+
image: ubuntu:latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install Docker
25+
run: |
26+
apt-get update
27+
apt-get install -y docker.io
28+
29+
- name: Test connection
30+
run: |
31+
apt-get update
32+
apt-get install -y iputils-ping
33+
ping -c 3 docker
34+
35+
- name: Test Docker
36+
run: |
37+
docker version
38+
docker info

0 commit comments

Comments
 (0)