Skip to content

Commit 463498e

Browse files
authored
[CI/CD] Build and push sources.Dockerfile to GHCR.io (#1183)
1 parent b0a5c0e commit 463498e

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/weekly-build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions: {}
1313

1414
jobs:
1515
build:
16-
name: "Build, Tag, Scan and Push Images"
16+
name: "Build, Tag and Push Images"
1717
runs-on: ubuntu-latest
1818
outputs:
1919
image_tag: ${{ steps.determine-tag.outputs.image_tag }}
@@ -30,6 +30,7 @@ jobs:
3030
scenescape-controller,
3131
scenescape-manager,
3232
scenescape-tracker,
33+
scenescape-sources,
3334
]
3435
steps:
3536
- name: "Set up Docker Buildx"
@@ -43,8 +44,10 @@ jobs:
4344

4445
- name: "Build image scene_common"
4546
run: |
46-
echo "Building scene_common"
47-
make -C scene_common
47+
if [[ "${{ matrix.images }}" != "scenescape-sources" && "${{ matrix.images }}" != "scenescape-tracker" ]]; then
48+
echo "Building scene_common"
49+
make -C scene_common
50+
fi
4851
4952
- name: "Build image ${{ matrix.images }}"
5053
run: |
@@ -60,6 +63,12 @@ jobs:
6063
elif [[ "${{ matrix.images }}" == "scenescape-tracker" ]]; then
6164
echo "Building ${{ matrix.images }}"
6265
make -C tracker
66+
elif [[ "${{ matrix.images }}" == "scenescape-sources" ]]; then
67+
echo "Building ${{ matrix.images }}"
68+
make build-sources-image
69+
else
70+
echo "ERROR: Unexpected matrix.images value: '${{ matrix.images }}'"
71+
exit 1
6372
fi
6473
6574
- name: "Determine Image Tag"

sources.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN echo "deb-src http://deb.debian.org/debian bookworm main contrib non-free no
1111
&& echo "deb-src http://deb.debian.org/debian trixie main contrib non-free non-free-firmware" >> /etc/apt/sources.list
1212
RUN apt-get update && apt-get install -y --no-install-recommends dpkg-dev
1313

14-
WORKDIR /sources-deb
14+
WORKDIR /sources/deb
1515
RUN apt-get source --download-only \
1616
armadillo \
1717
bindfs \
@@ -63,7 +63,7 @@ RUN apt-get source --download-only \
6363
xerces-c \
6464
z3
6565

66-
WORKDIR /sources-python
66+
WORKDIR /sources/python
6767
RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates git
6868
RUN : \
6969
; git clone --depth 1 https://github.com/certifi/python-certifi \
@@ -73,7 +73,7 @@ RUN : \
7373
; git clone --depth 1 https://github.com/psycopg/psycopg2 \
7474
; git clone --depth 1 https://github.com/tqdm/tqdm
7575

76-
WORKDIR /sources-conan
76+
WORKDIR /sources/conan
7777
RUN : \
7878
; git clone --depth 1 https://github.com/autotools-mirror/autoconf \
7979
; git clone --depth 1 https://github.com/autotools-mirror/automake \
@@ -84,14 +84,14 @@ RUN : \
8484
; git clone --depth 1 https://github.com/eigenteam/eigen-git-mirror \
8585
; git clone --depth 1 https://github.com/gcc-mirror/gcc
8686

87-
WORKDIR /sources-other
87+
WORKDIR /sources/other
8888
RUN : \
8989
; git clone --depth 1 https://github.com/mozilla/geckodriver \
9090
; git clone --depth 1 https://github.com/mirror/busybox
9191

9292
FROM debian:13@sha256:55a15a112b42be10bfc8092fcc40b6748dc236f7ef46a358d9392b339e9d60e8
9393

94-
COPY --from=source-grabber /sources* /sources
94+
COPY --from=source-grabber /sources /sources
9595
COPY third-party-programs.txt /sources
9696
WORKDIR /sources
9797

0 commit comments

Comments
 (0)