-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb8ef47
commit 07e8fd3
Showing
11 changed files
with
147 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
KUBIFY_CI: 1 | ||
KUBIFY_CONTAINER_REGISTRY: ecr | ||
UNIQUE_COMPANY_ACRONYM: os | ||
KUBIFY_DEBUG: 0 | ||
|
||
phases: | ||
deploy_environments: | ||
commands: | ||
- pwd | ||
- env | grep KUBIFY | ||
- ls -a | ||
- ci/scripts/deploy_environments.sh | ||
new_build_container: | ||
commands: | ||
- pwd | ||
- env | grep KUBIFY | ||
- ls -a | ||
- ci/scripts/new_build_container.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
KUBIFY_CI=1 | ||
|
||
service docker start || systemctl start docker | ||
|
||
git_sha_short=$(git rev-parse --short HEAD) | ||
mkdir -p ./._kubify_work | ||
|
||
# HEAD = list files changes since the last commit | ||
git diff --name-only HEAD > ./._kubify_work/files_changed.txt | ||
while read files_changes_txt_line; do | ||
# echo "checking if service $files_changes_txt_line" | ||
if [[ $files_changes_txt_line =~ "backend" ]] || [[ $files_changes_txt_line =~ "frontend" ]]; then | ||
echo "$files_changes_txt_line" | ||
fi | ||
done <./._kubify_work/files_changed.txt | ||
|
||
# for filename in ./environments/*.yaml; do | ||
# echo "reading file $filename" | ||
# env_filename=$(basename "$filename") | ||
# profile=$(echo "$env_filename" | cut -d'.' -f1) | ||
# echo "deploying environment $profile" | ||
# done | ||
|
||
# yq write -i $1 "services.${service}.image" "${SHA}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
KUBIFY_CI=1 | ||
|
||
service docker start || systemctl start docker | ||
|
||
git_sha_short=$(git rev-parse --short HEAD) | ||
mkdir -p ./._kubify_work | ||
|
||
|
||
build_new_base_image="0" | ||
# HEAD = list files changes since the last commit | ||
git diff --name-only HEAD > ./._kubify_work/files_changed.txt | ||
while read files_changes_txt_line; do | ||
# echo "checking if service $files_changes_txt_line" | ||
if [[ $files_changes_txt_line =~ "tools" ]]; then | ||
echo "tools file changed $files_changes_txt_line" | ||
build_new_base_image="1" | ||
fi | ||
done <./._kubify_work/files_changed.txt | ||
|
||
if [[ $build_new_base_image == "1" ]]; then | ||
echo "building new base image" | ||
./kubify publish_cicd_build_image | ||
fi |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+70.5 KB
docs/img/README_md_imgs/MAKE_SURE_YOU_ARE_BLOCKING_INCOMING_CONNECTIONS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+160 KB
docs/img/README_md_imgs/MAKE_SURE_YOU_HAVE_DISK_ENCRYPTION_ENABLED.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters