-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GITHUB): add step to apply rendered profile to a machine
- Loading branch information
1 parent
9a0bcba
commit fd73a62
Showing
3 changed files
with
79 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck disable=SC2129 | ||
|
||
set -eo pipefail | ||
|
||
RELEASE_URL="https://github.com/${USERNAME}/mac_maker/releases/download/${RELEASE_VERSION}/mac_maker_${OS_VERSION}_${PLATFORM_VERSION}.tar.gz" | ||
RELEASE_FOLDER="mac_maker_${OS_VERSION}_${PLATFORM_VERSION}" | ||
|
||
apply() { | ||
|
||
ANSIBLE_BECOME_PASSWORD="not needed" | ||
USER="$(id -un)" | ||
HOME="/Users/${USER}" | ||
|
||
pushd "${RELEASE_FOLDER}" || exit 127 | ||
export ANSIBLE_BECOME_PASSWORD USER HOME | ||
./mac_maker apply github "https://github.com/${USERNAME}/${TEMPLATED_NAME}" | ||
popd | ||
|
||
} | ||
|
||
fetch() { | ||
|
||
curl -L "${RELEASE_URL}" > binary.tar.gz | ||
tar xvzf binary.tar.gz | ||
|
||
} | ||
|
||
main() { | ||
|
||
fetch | ||
apply | ||
|
||
} | ||
|
||
main |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
NAME=${1:-"Pro Buddy Dev"} | ||
EMAIL=${2:-"[email protected]"} | ||
|
||
set -eo pipefail | ||
|
||
main() { | ||
pip install cookiecutter poetry | ||
git config --global user.name "${NAME}" | ||
|
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