ops: Fix CICD docker usage #4

Closed
brock wants to merge 15 commits from fix/cicd into main
Showing only changes of commit 39bc8ca457 - Show all commits

View File

@@ -43,6 +43,7 @@ jobs:
context: .
file: builder.Dockerfile
tags: cproject-builder:latest
push: false
outputs: type=docker,dest=/tmp/docker/${{ runner.os }}-builder-image.tar
-
name: Upload docker image
@@ -54,18 +55,16 @@ jobs:
retention-days: 3
-
name: Build library
uses: https://git.brocklobsta.net/brock/docker-run-action@v5
uses: https://github.com/addnab/docker-run-action@v3
with:
tarball: /tmp/docker/${{ runner.os }}-builder-image.tar
image: cproject-builder:latest
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
run: |
/bin/bash -c "cd ${{ github.workspace }}; rm -rf build; cmake -B build; cmake --build build"
-
name: Test library
uses: https://git.brocklobsta.net/brock/docker-run-action@v5
uses: https://github.com/addnab/docker-run-action@v3
with:
tarball: /tmp/docker/${{ runner.os }}-builder-image.tar
image: cproject-builder:latest
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
run: |