feat: add secret manager #285
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
# .github/workflows/push.yaml | |
name: MacOS Agent build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
# shellcheck: | |
# name: Check lint errors on scripts | |
# runs-on: ubuntu-latest | |
# defaults: | |
# run: | |
# shell: bash | |
# steps: | |
# - name: Checkout with submodules | |
# uses: actions/checkout@v3 | |
# - name: Run ShellCheck | |
# # brew install shellcheck | |
# uses: ludeeus/action-shellcheck@master | |
# env: | |
# SHELLCHECK_OPTS: -e SC2059 -e SC2034 -e SC1090 | |
size-badge: | |
name: Create Size Badge | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout with submodules | |
uses: actions/checkout@v3 | |
- id: size | |
run: echo "##[set-output name=data;]$(tree --du -h . | tail -n 1 | awk '{print $1}')" | |
- name: Create the Badge | |
uses: schneegans/dynamic-badges-action@master | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: ${{ secrets.GIST_ID }} | |
filename: size-badge.json | |
label: 'size' | |
message: ${{ steps.size.outputs.data }} | |
color: green | |
initialize_build: | |
name: Local initialize test | |
runs-on: macos-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout with submodules | |
uses: actions/checkout@v3 | |
- name: Set up script test | |
env: | |
# RUN_MAC_UPDATES: false | |
WORKFLOW: true | |
run: | | |
./initialize.sh | |
# curl_build: | |
# name: Remote curl initialize test without repo download | |
# runs-on: macos-latest | |
# defaults: | |
# run: | |
# shell: bash | |
# steps: | |
# - name: Set up script test | |
# run: | | |
# bash -c "`curl -L https://git.io/dotfiles-m1`" | |
macos_build: | |
name: Build test | |
runs-on: macos-latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: | |
- 16 | |
system: | |
- os: macos-10.15 | |
target: x86_64-apple-darwin | |
include: | |
- system: | |
os: [self-hosted, macOS, ARM64] | |
target: aarch64-apple-darwin | |
node_version: 16 | |
steps: | |
- name: Checkout with submodules | |
uses: actions/checkout@v3 | |
env: | |
REPO: ${{github.workspace}} | |
DOTFILES_REF: ${{github.sha}} | |
SKIP_SLOW_DEPENDENCIES: "1" | |
HOMEBREW_BUNDLE_BREW_SKIP: "node" | |
- name: Set env | |
id: set-env | |
run: echo "CI=true" >> $GITHUB_ENV | |
- name: Display the architecture | |
shell: bash | |
run: | | |
arch | |
- name: Check the CI environment variable | |
id: check-ci-env | |
shell: bash | |
run: | | |
[[ -z "${CI}" ]] && echo "Not running on CI" || echo "Running on CI" | |
# - name: Remove preinstalled brew packages | |
# run: | | |
# brew remove --force --ignore-dependencies $(brew list --formula) | |
# - name: Cache brew deps | |
# uses: actions/cache@v2 | |
# with: | |
# # Paths to cache: | |
# # /usr/local/Homebrew - installation folder of Homebrew | |
# # /usr/local/Cellar - installation folder of Homebrew formulae | |
# # /usr/local/Frameworks, /usr/local/bin, /usr/local/opt - contain (links to) binaries installed by Homebrew formulae | |
# # /usr/local/lib/python3.8 - Python3 packages installation | |
# path: | | |
# /usr/local/Homebrew | |
# /usr/local/Cellar | |
# /usr/local/Frameworks | |
# /usr/local/bin | |
# /usr/local/opt | |
# /usr/local/lib/python3.8 | |
# /opt/homebrew/ | |
# key: macos-build-cache-${{ hashFiles('./setup.sh') }} | |
# - name: Set up builder | |
# run: | | |
# ./setup.sh |