Skip to content

Commit

Permalink
ci: System-wide PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mtweeman committed Sep 10, 2024
1 parent bccbf53 commit 492f818
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/static-analyzers-aggregator-geodesic-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@ jobs:
name: Static analysis geodesic test
runs-on: ubuntu-latest
container:
image: mtweeman/hajle-silesia_provisioning-ld:sha-2387ca9

defaults:
run:
shell:
bash -il -e -o pipefail {0}
image: mtweeman/hajle-silesia_provisioning-ld:sha-fe33102

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Commands
- name: Configure git
run: |
echo "PATH: ${PATH}"
. ~/.profile
echo "PATH: ${PATH}"
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Run static analysis
run: |
echo "TF: $(terraform -version)"
echo "Trivy: $(trivy --version)"
echo "TFlint: $(tflint --version)"
echo "pre-commit: $(pre-commit --version)"
pre-commit run --all-files --hook-stage manual
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ ENV DOCKER_TAG="latest"
# source: https://mise.jdx.dev/getting-started.html
ARG MISE_VERSION
ARG MISE_INSTALL_PATH="/usr/local/bin/mise"
RUN curl https://mise.run | MISE_INSTALL_PATH="${MISE_INSTALL_PATH}" MISE_VERSION="${MISE_VERSION}" sh
#RUN echo "eval \"\$(${MISE_INSTALL_PATH} activate bash)\"" >> ~/.profile
RUN mise activate bash --shims >> ~/.profile
ARG MISE_DATA_DIR="/usr/share/xdg_data_home/mise"
RUN curl https://mise.run | \
MISE_VERSION="${MISE_VERSION}" \
MISE_INSTALL_PATH="${MISE_INSTALL_PATH}" \
MISE_DATA_DIR="${MISE_DATA_DIR}" \
sh
ENV PATH="${MISE_DATA_DIR}/shims:$PATH"
# defaults for all users
# source: https://mise.jdx.dev/configuration.html#system-config-etc-mise-config-toml
COPY .mise.toml /etc/mise/config.toml
# install tools
# source: https://mise.jdx.dev/cli/install.html
RUN mise install --yes

0 comments on commit 492f818

Please sign in to comment.