From cbefcc75960813d2b6685cf099d9e4465297ac44 Mon Sep 17 00:00:00 2001 From: fmacleal Date: Wed, 17 Jul 2024 18:28:14 +0200 Subject: [PATCH] Trying to fix the output to GITHUB_OUTPUT --- .github/images/Dockerfile | 12 ++---------- .github/images/entrypoint.sh | 4 ++-- .github/workflows/ci.yml | 2 +- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/images/Dockerfile b/.github/images/Dockerfile index 77dbce36..46c6ea90 100644 --- a/.github/images/Dockerfile +++ b/.github/images/Dockerfile @@ -4,7 +4,7 @@ LABEL Description="Custom RSK node image to execute Rootstock Integration Tests" RUN apt-get update \ && apt-get install -y --no-install-recommends \ - wget gnupg2 curl git ca-certificates mocha \ + wget gnupg2 curl git ca-certificates mocha \ && apt clean # -- nodeJs --------------------------------------------------------- @@ -41,10 +41,6 @@ RUN cd /tmp \ && rm -v /opt/bitcoin/bin/test_bitcoin /opt/bitcoin/bin/bitcoin-qt \ && ln -sv /opt/bitcoin/bin/* /usr/local/bin -# -- Create a non-root user and group -- -RUN groupadd -r rituser && useradd -r -g rituser -d /usr/src/ rituser -RUN mkdir -p /usr/src/ && chown -R rituser:rituser /usr/src/ - # -- configure entrypoint to run RIT-------------------------------------------- RUN mkdir -p /usr/src/logbacks @@ -60,11 +56,7 @@ RUN chmod +x /usr/src/entrypoint.sh \ && chmod +x /usr/src/configure_gradle_powpeg.sh \ && chmod +x /usr/src/configure_rit_locally.sh \ && mkdir -p /usr/src/bitcoindata \ - && chmod -R 755 /usr/src/bitcoindata \ - && chown -R rituser:rituser /usr/src/ - -# -- Switch to non-root user -- -USER rituser + && chmod -R 755 /usr/src/bitcoindata ENTRYPOINT ["/usr/src/entrypoint.sh"] diff --git a/.github/images/entrypoint.sh b/.github/images/entrypoint.sh index 3721cf58..1c4216dd 100644 --- a/.github/images/entrypoint.sh +++ b/.github/images/entrypoint.sh @@ -46,8 +46,8 @@ else fi echo -e "$MESSAGE" -echo "status=${STATUS}" >> ${GITHUB_OUTPUT} -echo "message=${MESSAGE}" >> ${GITHUB_OUTPUT} +echo "status=${STATUS}" >> "${GITHUB_OUTPUT}" +echo "message=${MESSAGE}" >> "${GITHUB_OUTPUT}" if [ $STATUS -ne 0 ]; then exit 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 876cb511..885cdb57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: --env INPUT_POWPEG_NODE_BRANCH="master" \ --env INPUT_RIT_BRANCH="main" \ --env INPUT_RIT_LOG_LEVEL="info" \ - --env "GITHUB_OUTPUT=/github-output" \ + --env GITHUB_OUTPUT="/github-output" \ -v "$GITHUB_OUTPUT:/github-output" \ --rm ${{ env.TEST_TAG }}