Skip to content

Commit 01f5454

Browse files
committed
debug action
1 parent ba27561 commit 01f5454

2 files changed

Lines changed: 24 additions & 10 deletions

File tree

.github/workflows/build-test-sign-image.yaml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff 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.

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ ENV DATABASECONNECTOR_JAR_FOLDER="/opt/hades/jdbc_drivers"
1818
RUN R -e "DatabaseConnector::downloadJdbcDrivers('all');"
1919

2020
RUN 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
2123
RUN install2.r --error CirceR && rm -rf /tmp/download_packages/ /tmp/*.rds
2224
RUN install2.r --error SqlRender && rm -rf /tmp/download_packages/ /tmp/*.rds
2325
RUN install2.r --error renv && rm -rf /tmp/download_packages/ /tmp/*.rds

0 commit comments

Comments
 (0)