Skip to content

Commit

Permalink
Test Read-Only Filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
snovikov committed Jan 30, 2025
1 parent 5e1e560 commit ce5a8e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,8 @@ jobs:
ATLANTIS:
- 0.32.0
TF_TG:
# Terraform 1.10.x
- 'TF-1.10.4 TG-0.63.8'
# Terraform 1.9.x
- 'TF-1.9.8 TG-0.63.8'
# Terraform 1.8.x
- 'TF-1.8.5 TG-0.63.8'
# Terraform 1.7.x
- 'TF-1.7.5 TG-0.63.8'
# Terraform 1.6.x
- 'TF-1.6.6 TG-0.63.8'
# Terraform 1.5.x
- 'TF-1.5.7 TG-0.63.8'
# Terraform 1.4.x
- 'TF-1.4.7 TG-0.63.8'
# Terraform 1.3.x
- 'TF-1.3.10 TG-0.63.8'
# Terraform 1.2.x
- 'TF-1.2.9 TG-0.63.8'
# Terraform 1.1.x
- 'TF-1.1.9 TG-0.63.8'
# Terraform 1.0.x
- 'TF-1.0.11 TG-0.63.8'

steps:
- name: Checkout repository
Expand All @@ -61,11 +41,7 @@ jobs:
fi
# Build Docker image tag
if [ "${SLUG}" = "master" ]; then
TAG="${ATLANTIS}-${TERRAFORM}-${TERRAGRUNT}"
else
TAG="${ATLANTIS}-${TERRAFORM}-${TERRAGRUNT}-${SLUG}"
fi
TAG="${ATLANTIS}-${TERRAFORM}-${TERRAGRUNT}-ro"
# Output for debugging
echo "ATLANTIS=${ATLANTIS}"
Expand Down Expand Up @@ -147,7 +123,7 @@ jobs:
&& (
(github.event_name == 'schedule' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')))
||
(github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')))
(github.event_name == 'push' && (github.ref == 'refs/heads/ro' || startsWith(github.ref, 'refs/tags/')))
||
(github.event_name == 'release' && github.event.action == 'released')
)
Expand All @@ -174,7 +150,7 @@ jobs:
&& (
(github.event_name == 'schedule' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')))
||
(github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')))
(github.event_name == 'push' && (github.ref == 'refs/heads/ro' || startsWith(github.ref, 'refs/tags/')))
||
(github.event_name == 'release' && github.event.action == 'released')
)
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,14 @@ RUN set -eux \
&& mv op /usr/local/bin/op \
&& op --version | grep "${ONE_PASSWORD_CLI}"

RUN cd / \
&& git config user.email "[email protected]" \
&& git config user.name "DevOps Team" \
&& git init \
&& echo "/dev" > .gitignore \
&& echo "/proc" >> .gitignore \
&& echo "/sys" >> .gitignore \
&& git add * \
&& git commit -am "Initial state"

USER atlantis

0 comments on commit ce5a8e0

Please sign in to comment.