Skip to content

Commit 7f38cb7

Browse files
committed
CI: multi-arch-test-build: adapt to reference Dockerfiles from shared
Adapt workflow to reference Dockerfiles from shared actions repository. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
1 parent 20e2347 commit 7f38cb7

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/multi-arch-test-build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,29 @@ jobs:
193193
sudo apt-get install -y qemu-user-static binfmt-support
194194
sudo update-binfmts --import
195195
196+
- name: Checkout
197+
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
198+
uses: actions/checkout@v4
199+
with:
200+
repository: openwrt/actions-shared-workflows
201+
path: dockerfiles_feeds
202+
sparse-checkout: |
203+
.github/scripts/ci_helpers.sh
204+
.github/dockerfiles_feeds/Dockerfile
205+
.github/dockerfiles_feeds/entrypoint.sh
206+
sparse-checkout-cone-mode: false
207+
196208
- name: Build Docker container
197209
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
198210
run: |
199-
docker build --platform linux/${{ matrix.arch }} -t test-container --build-arg ARCH .github/workflows/
211+
docker build --platform linux/${{ matrix.arch }} -t test-container \
212+
--build-arg ARCH dockerfiles_feeds/.github/dockerfiles_feeds/
200213
env:
201214
ARCH: ${{ matrix.arch }}-${{ env.BRANCH }}
202215

203216
- name: Test via Docker container
204217
if: ${{ matrix.runtime_test && fromJSON(env.HAVE_IPKS) }}
205218
run: |
206-
docker run --platform linux/${{ matrix.arch }} --rm -v $GITHUB_WORKSPACE:/ci test-container
219+
docker run --platform linux/${{ matrix.arch }} --rm -v $GITHUB_WORKSPACE:/ci \
220+
-v $GITHUB_WORKSPACE/dockerfiles_feeds:/dockerfiles_feeds \
221+
-e CI_HELPER=/dockerfiles_feeds/scripts/ci_helpers.sh test-container

0 commit comments

Comments
 (0)