Skip to content

Commit

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

# defaults:
# run:
# shell:
# bash
defaults:
run:
shell:
bash -e -o pipefail {0}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Commands
run: |
echo "PATH: ${PATH}"
for path in $(mise bin-paths); do
export PATH="${path}:${PATH}"
done
git config --global --add safe.directory $GITHUB_WORKSPACE
pre-commit run --all-files --hook-stage manual
# - run: |
# docker run --rm mtweeman/hajle-silesia_provisioning-ld:latest init | bash
# /usr/local/bin/hajle-silesia_provisioning-ld
# cd /
# . conf/.profile
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ ENV DOCKER_TAG="latest"
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 echo "eval \"\$(${MISE_INSTALL_PATH} activate bash)\"" >> ~/.profile
RUN mise activate bash --shims >> ~/.profile
# source: https://mise.jdx.dev/configuration.html#system-config-etc-mise-config-toml
COPY .mise.toml /etc/mise/config.toml
# source: https://mise.jdx.dev/cli/install.html
RUN mise install --yes
SHELL ["/bin/bash", "-c"]
RUN . /conf/.profile && echo "${PATH}"
RUN eval "$(${MISE_INSTALL_PATH} activate bash)" && echo "${PATH}"
ENV PATH="${PATH}"

0 comments on commit 20b57b9

Please sign in to comment.