File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,19 +58,31 @@ jobs:
5858
5959 # 1) CI build (LOAD locally) so we can run tests inside the image.
6060 # Attestations (sbom/provenance) require pushing, so we do that only after tests pass.
61+ # Build is run with --progress=plain and teed to build.log for artifact upload on failure.
6162 - name : Build (CI / local load)
6263 id : build_ci
63- uses : docker/build-push-action@v6
64+ run : |
65+ set -o pipefail
66+ docker buildx build \
67+ --progress=plain \
68+ --load \
69+ --file ./Dockerfile \
70+ --tag ${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:ci-${{ github.sha }} \
71+ --label "org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}" \
72+ --label "org.opencontainers.image.revision=${{ github.sha }}" \
73+ --cache-from type=gha \
74+ --cache-to type=gha,mode=max \
75+ --platform linux/amd64 \
76+ . 2>&1 | tee build.log
77+
78+ - name : Upload build log
79+ uses : actions/upload-artifact@v4
80+ if : always()
6481 with :
65- context : .
66- file : ./Dockerfile
67- platforms : linux/amd64
68- push : false
69- load : true
70- tags : ${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:ci-${{ github.sha }}
71- labels : ${{ steps.meta.outputs.labels }}
72- cache-from : type=gha
73- cache-to : type=gha,mode=max
82+ name : docker-build-log
83+ path : build.log
84+ retention-days : 30
85+ if-no-files-found : ignore
7486
7587 # Run your build/test script INSIDE the built image.
7688 # Assumes your image contains your package source (COPY . ...) and that this script exists.
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ ENV DATABASECONNECTOR_JAR_FOLDER="/opt/hades/jdbc_drivers"
1818RUN R -e "DatabaseConnector::downloadJdbcDrivers('all');"
1919
2020RUN install2.r --error Andromeda && rm -rf /tmp/download_packages/ /tmp/*.rds
21+ # CirceR depends on rJava and RJSONIO; install RJSONIO explicitly to avoid dependency issues
22+ RUN install2.r --error RJSONIO && rm -rf /tmp/download_packages/ /tmp/*.rds
2123RUN install2.r --error CirceR && rm -rf /tmp/download_packages/ /tmp/*.rds
2224RUN install2.r --error SqlRender && rm -rf /tmp/download_packages/ /tmp/*.rds
2325RUN install2.r --error renv && rm -rf /tmp/download_packages/ /tmp/*.rds
You can’t perform that action at this time.
0 commit comments