Skip to content

Commit

Permalink
Trying to fix the output to GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
fmacleal committed Jul 18, 2024
1 parent f570be3 commit cbefcc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
12 changes: 2 additions & 10 deletions .github/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------------
Expand Down Expand Up @@ -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
Expand All @@ -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"]

Expand Down
4 changes: 2 additions & 2 deletions .github/images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit cbefcc7

Please sign in to comment.