Skip to content

Commit

Permalink
fix(ci): use hologit action
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Jan 4, 2024
1 parent 7034a4d commit 258419d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 26 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/deploy-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,14 @@ jobs:
cluster_name: ${{ env.GKE_NAME }}
location: ${{ env.GKE_REGION }}
- run: curl -sSL https://install.python-poetry.org | python -
- name: Set up hologit
env:
BIO_RELEASE: 1.6.821
run: |
curl -LO "https://github.com/biome-sh/biome/releases/download/v${BIO_RELEASE}/bio-${BIO_RELEASE}-x86_64-linux.tar.gz"
tar xzvf "bio-${BIO_RELEASE}-x86_64-linux.tar.gz"
sudo mv bio /usr/local/bin/bio
sudo bio pkg install --binlink jarvus/hologit
git config user.name "Github Action $GITHUB_JOB"
git config user.email "$(whoami)@$(uname -n)"

# Render Kubernetes content with parent underlay and checkout
- run: git holo project kubernetes-workspace --commit-to=kubernetes
- run: git checkout kubernetes
- name: 'Project kubernetes-workspace holobranch'
uses: JarvusInnovations/hologit@actions/projector/v1
with:
holobranch: kubernetes-workspace
commit-to: kubernetes-workspace
- run: git checkout kubernetes-workspace

# Diff and write back to PR
- id: diff
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/preview-kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,14 @@ jobs:
cluster_name: ${{ env.GKE_NAME }}
location: ${{ env.GKE_REGION }}
- run: curl -sSL https://install.python-poetry.org | python -
- name: Set up hologit
env:
BIO_RELEASE: 1.6.821
run: |
curl -LO "https://github.com/biome-sh/biome/releases/download/v${BIO_RELEASE}/bio-${BIO_RELEASE}-x86_64-linux.tar.gz"
tar xzvf "bio-${BIO_RELEASE}-x86_64-linux.tar.gz"
sudo mv bio /usr/local/bin/bio
sudo bio pkg install --binlink jarvus/hologit
git config user.name "Github Action $GITHUB_JOB"
git config user.email "$(whoami)@$(uname -n)"

# Render Kubernetes content with parent underlay and checkout
- run: git holo project kubernetes-workspace --commit-to=kubernetes
- run: git checkout kubernetes
- name: 'Project kubernetes-workspace holobranch'
uses: JarvusInnovations/hologit@actions/projector/v1
with:
holobranch: kubernetes-workspace
commit-to: kubernetes-workspace
- run: git checkout kubernetes-workspace

# Diff and write back to PR
- id: diff
Expand Down

0 comments on commit 258419d

Please sign in to comment.