Skip to content

Commit 9b21c7e

Browse files
authored
Merge pull request #1447 from lorengordon/fix/image-user
2 parents 358ef24 + 845783b commit 9b21c7e

6 files changed

Lines changed: 13 additions & 26 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ jobs:
7272
secrets: |
7373
"GITHUB_ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }}"
7474
75+
- name: Run docker lint
76+
if: github.event_name == 'pull_request'
77+
env:
78+
IMAGE_NAME: plus3it/tardigrade-ci:test
79+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80+
run: make docker/run target="lint"
81+
7582
- name: Run bats tests
7683
if: github.event_name == 'pull_request'
7784
run: docker run --rm -e "GITHUB_ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }}" plus3it/tardigrade-ci:test bats/test

.github/workflows/dependabot_hack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424

2525
- uses: astral-sh/uv@0.11.2
2626

27-
- uses: gruntwork-io/terragrunt@5.14.1
27+
- uses: gruntwork-io/terragrunt@0.99.5
2828

2929
- uses: stedolan/jq@jq-1.8.1

.github/workflows/lint.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
2626
* python 3.14.3
2727
* rclone 1.73.3
2828
* terragrunt 0.99.5
29-
* uv 0.11.1
29+
* uv 0.11.2
3030
* yq 4.52.5
3131

3232
### [0.28.7](https://github.com/plus3it/tardigrade-ci/releases/tag/0.28.7)

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ ENV TF_PLUGIN_CACHE_DIR=${HOME}/.terraform.d/plugin-cache
4545

4646
RUN mkdir -p "$TF_PLUGIN_CACHE_DIR"
4747

48+
RUN git config --global --add safe.directory /workdir \
49+
&& git config --global --add safe.directory /${PROJECT_NAME}
50+
4851
RUN --mount=type=secret,id=GITHUB_ACCESS_TOKEN,mode=0400,uid=1000,gid=1000 \
4952
GITHUB_ACCESS_TOKEN="$(cat /run/secrets/GITHUB_ACCESS_TOKEN)" \
5053
make -C /${PROJECT_NAME} install/build

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ docker/run: export target ?= help
545545
docker/run: export entrypoint ?= entrypoint.sh
546546
docker/run: export DOCKER_USERNS ?=
547547
docker/run: | guard/env/TARDIGRADE_CI_PATH guard/env/TARDIGRADE_CI_PROJECT
548-
docker/run: docker/build
549548
@echo "[$@]: Running docker image"
550549
userns=""; \
551550
if docker --version 2>/dev/null | grep -qi podman; then userns="--userns=keep-id"; elif [ -n "$(DOCKER_USERNS)" ]; then userns="--userns=$(DOCKER_USERNS)"; fi; \
@@ -627,7 +626,7 @@ lint/install: pytest/install terraform/install terraform-docs/install cfn-lint/i
627626
lint/install: ec/install shellcheck/install jq/install yamllint/install
628627

629628
install: lint/install
630-
install: rclone/install packer/install
629+
install: rclone/install packer/install terragrunt/install
631630

632631
## Installs tools for container image using only uv-managed Python runtimes
633632
install/build:

0 commit comments

Comments
 (0)