Skip to content

Commit

Permalink
work-bin: Add yolo and yolo-rollback earthly target helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
zapling committed Nov 7, 2024
1 parent 616bc92 commit 9a53511
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .local/bin/work/yolo
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

if [[ ! -e ./Earthfile ]]; then
echo "No earthfile found!"
exit 1
fi

environment="test"

if [[ "$1" != "" ]]; then
environment="$1"
fi

earthly-linux-amd64 \
--ci --push --secret kubeConfig="$(cat "$KUBECONFIG")" \
+yolo-deploy-$environment \
--user="$(whoami)"
16 changes: 16 additions & 0 deletions .local/bin/work/yolo-rollback
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

if [[ ! -e ./Earthfile ]]; then
echo "No earthfile found!"
exit 1
fi

environment="test"

if [[ "$1" != "" ]]; then
environment="$1"
fi

earthly-linux-amd64 \
--ci --secret kubeConfig="$(cat "$KUBECONFIG")" \
+rollback-yolo-deploy-$environment

0 comments on commit 9a53511

Please sign in to comment.