forked from osbuild/image-builder-crc
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (24 loc) · 805 Bytes
/
container.yml
File metadata and controls
32 lines (24 loc) · 805 Bytes
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
name: Container
on:
- pull_request
- push
jobs:
build:
name: "📦 Build container"
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Build the container
run: docker build -t image-builder -f distribution/Dockerfile-ubi .
- name: Run the container
run: |
docker run -d --net=host --name image-builder image-builder
docker ps
- name: Verify that the startup log line is in the logs
run: |
docker logs image-builder | grep "Starting image-builder server"
- name: Check that the API is responding
run: curl -sv http://127.0.0.1:8086/api/image-builder/v1/version
- name: Stop the container
run: docker stop --time 1 image-builder