Last active
April 15, 2024 17:58
-
-
Save vfarcic/77c63cede031951654d5fea5ce0acb43 to your computer and use it in GitHub Desktop.
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
# Source: https://gist.github.com/vfarcic/77c63cede031951654d5fea5ce0acb43 | |
######################################################################################### | |
# Say Goodbye to Makefile - Use Taskfile to Manage Tasks in CI/CD Pipelines and Locally # | |
######################################################################################### | |
# Additional Info: | |
# - Task: https://taskfile.dev | |
# - Dagger: The Missing Ingredient for Your Disastrous CI/CD Pipeline: https://youtu.be/oosQ3z_9UEM | |
######### | |
# Setup # | |
######### | |
# Make sure that Docker is up-and-running | |
git clone https://github.com/vfarcic/crossplane-kubernetes | |
cd crossplane-kubernetes | |
git pull | |
git checkout -t origin/task | |
# Watch https://youtu.be/0ulldVwZiKA if you are not familiar with Nix. Alternatively, you can skip Nix and install all the tools listed in `shell.nix` yourself. | |
nix-shell --run $SHELL | |
# Open a second terminal sessions in the same directory. | |
########################################################## | |
# Task and Taskfile (Replacements for Make and Makefile) # | |
########################################################## | |
cat Taskfile.yaml | |
task --list | |
task --summary package-generate | |
cat Taskfile.yaml | yq ".tasks.package-generate" | |
task package-generate | |
cat Taskfile.yaml | yq ".tasks.cluster-create" | |
task cluster-create --dry | |
task cluster-create | |
# That task will take a while to execute. Be patient... | |
cat Taskfile.yaml | yq ".tasks.test-watch" | |
task test-watch | |
# Modify `tests/aws/00-assert.yaml` in the second terminal session. | |
# Undo the change to `tests/aws/00-assert.yaml`. | |
# Press `ctrl+c` to stop the process | |
task cluster-destroy | |
cat .github/workflows/build11.yaml | |
########### | |
# Destroy # | |
########### | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment