Skip to content

Commit 4a77381

Browse files
justdavemrenvoize
andauthored
Bug 2054399: pull dependencies from extensions in TestSuite Docker image (#172)
r=mrenvoize Co-authored-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> r=justdave
1 parent 2a84b4d commit 4a77381

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ jobs:
9090
steps:
9191
- name: Checkout the repository
9292
uses: actions/checkout@v4
93+
- name: Set up Docker Buildx
94+
uses: docker/setup-buildx-action@v4
9395
- name: Build Docker image
94-
run: docker build -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite .
96+
run: docker buildx build --load -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite .
9597
- name: Run tests
9698
run: docker run --rm bugzilla-release-test
9799

‎docker/images/Dockerfile.perl-testsuite‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# syntax=docker/dockerfile:1
2+
13
# This Source Code Form is subject to the terms of the Mozilla Public
24
# License, v. 2.0. If a copy of the MPL was not distributed with this
35
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
@@ -30,7 +32,7 @@ RUN apt-get update && apt-get -y dist-upgrade && \
3032
rm -rf /var/lib/apt/lists/*
3133

3234
# Copy just enough to get the list of dependencies
33-
COPY Bugzilla.pm Makefile.PL gen-cpanfile.pl /app/
35+
COPY --parents Bugzilla.pm Makefile.PL gen-cpanfile.pl extensions/*/Config.pm extensions/*/disabled /app/
3436

3537
# Run Makefile.PL and install dependencies
3638
RUN perl Makefile.PL && \

0 commit comments

Comments
 (0)