Skip to content

Commit

Permalink
Update .gitignore file (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger authored Oct 8, 2024
1 parent 4aec13a commit 51ca6b7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
!/.kosli.yml
!/.env
!/.snyk
!/.snyk.example

!/healthcheck.sh
!/config.ru
Expand All @@ -33,7 +34,7 @@
!/docker-compose-web-volume-mount.yml
!/Makefile
!/Dockerfile
!/build_test_publish.sh
!/build_test.sh
!/demo.sh
!/up.sh
!/web.env
Expand Down
10 changes: 10 additions & 0 deletions .snyk.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
SNYK-GOLANG-GITHUBCOMOPENCONTAINERSRUNCLIBCONTAINERUTILS-7856945:
- '*':
reason: Waiting for base image upgrade
expires: 2024-10-08T15:47:10.182Z
created: 2024-09-08T15:47:10.201Z
patch: {}
26 changes: 26 additions & 0 deletions build_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -Eeu

repo_root() { git rev-parse --show-toplevel; }
export SH_DIR="$(repo_root)/sh"

source "${SH_DIR}/build_tagged_images.sh"
source "${SH_DIR}/containers_down.sh"
source "${SH_DIR}/containers_up.sh"
source "${SH_DIR}/echo_env_vars.sh"
source "${SH_DIR}/exit_zero_if_build_only.sh"
source "${SH_DIR}/exit_non_zero_unless_installed.sh"
source "${SH_DIR}/remove_old_images.sh"
source "${SH_DIR}/run_tests_in_container.sh"

exit_non_zero_unless_installed docker

source "${SH_DIR}/echo_versioner_env_vars.sh"
export $(echo_versioner_env_vars)

containers_down
remove_old_images
build_tagged_images
exit_zero_if_build_only "$@"
containers_up
run_tests_in_container "$@"

0 comments on commit 51ca6b7

Please sign in to comment.