-
Notifications
You must be signed in to change notification settings - Fork 115
61 lines (54 loc) · 2.18 KB
/
dls-build-docker-images.yaml
File metadata and controls
61 lines (54 loc) · 2.18 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "[DLS] [U22/24] Build Docker Images"
run-name: "[DLS] [U22/24] Build Docker Images"
on:
push:
paths:
- 'libraries/dl-streamer/**'
pull_request:
paths:
- 'libraries/dl-streamer/**'
permissions: read-all
jobs:
build:
name: Build ${{ matrix.image }} image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- path: ./libraries/dl-streamer/docker/devel/ubuntu22/dlstreamer_dev_ubuntu22.Dockerfile
image: dev-ubuntu22
- path: ./libraries/dl-streamer/docker/devel/ubuntu24/dlstreamer_dev_ubuntu24.Dockerfile
image: dev-ubuntu24
- path: ./libraries/dl-streamer/docker/onebinary/ubuntu22/dlstreamer_ubuntu22.Dockerfile
image: one-binary-ubuntu22
- path: ./libraries/dl-streamer/docker/onebinary/ubuntu24/dlstreamer_ubuntu24.Dockerfile
image: one-binary-ubuntu24
steps:
- name: Check out edge-ai-libraries repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #4.2.2
- name: Init submodules
run: |
git submodule update --init libraries/dl-streamer/thirdparty/spdlog
- name: Log in to GitHub Container Registry
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/${{ matrix.image }}:${{ github.sha }} -f ${{ matrix.path }} .
# - name: Push Docker image
# run: |
# docker push ghcr.io/${{ github.repository }}/${{ matrix.image }}:${{ github.sha }}
- name: Save image info
id: save-image
run: echo "image=ghcr.io/${{ github.repository }}/${{ matrix.image }}:${{ github.sha }} " >> $GITHUB_ENV
- name: Create summary
if: always()
run: |
echo "### Docker ${{ matrix.image }} :ship:" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
echo "${{ env.image }}" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY