aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-12-22 16:12:36 -0500
committerXe Iaso <me@xeiaso.net>2024-12-22 16:12:46 -0500
commit65274fa5ff3256d99c28185c7ee50f02211c9fc4 (patch)
tree6a6eca4f0d63e6037359f9ab38100b21c323414d
parentfea591df9b17c35742d67741f85bf32e687229e2 (diff)
downloadxesite-65274fa5ff3256d99c28185c7ee50f02211c9fc4.tar.xz
xesite-65274fa5ff3256d99c28185c7ee50f02211c9fc4.zip
github workflows: make deployment logic better
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--.github/workflows/earthly.yml22
-rw-r--r--lume/src/blog/2024/soylent-green-people.mdx2
2 files changed, 13 insertions, 11 deletions
diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml
index 272292e..b76055e 100644
--- a/.github/workflows/earthly.yml
+++ b/.github/workflows/earthly.yml
@@ -45,21 +45,12 @@ jobs:
name: "Deploy xesite"
needs: build
runs-on: alrest-xe-site
+ if: github.ref == 'refs/heads/main'
permissions:
contents: read
- if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- - uses: azure/setup-kubectl@v4
- - name: Save Civo kubeconfig
- run: |
- curl -sL https://civo.com/get | sudo sh
- civo apikey add default $CIVO_TOKEN
- civo apikey current default
- civo kubernetes config --region phx1 aeacus --save --switch
- env:
- CIVO_TOKEN: ${{ secrets.CIVO_TOKEN }}
- uses: dorny/paths-filter@v3
id: changes
with:
@@ -73,6 +64,17 @@ jobs:
- 'go.sum'
- 'Earthfile'
- 'manifest/**/*.yaml'
+ - uses: azure/setup-kubectl@v4
+ if: steps.changes.outputs.src == 'true'
+ - name: Save Civo kubeconfig
+ if: steps.changes.outputs.src == 'true'
+ run: |
+ curl -sL https://civo.com/get | sudo sh
+ civo apikey add default $CIVO_TOKEN
+ civo apikey current default
+ civo kubernetes config --region phx1 aeacus --save --switch
+ env:
+ CIVO_TOKEN: ${{ secrets.CIVO_TOKEN }}
- name: "Deploy"
if: steps.changes.outputs.src == 'true'
run: |
diff --git a/lume/src/blog/2024/soylent-green-people.mdx b/lume/src/blog/2024/soylent-green-people.mdx
index 01c467e..65e97fd 100644
--- a/lume/src/blog/2024/soylent-green-people.mdx
+++ b/lume/src/blog/2024/soylent-green-people.mdx
@@ -49,7 +49,7 @@ I'm gonna come out ahead here and say that I don't think that tools like ChatGPT
The reason why ChatGPT can look evil is a mote complicated and I'm going to have to take a bit of a detour here to explain it, but trust me; everything is going according to keikaku.
<Conv name="Mara" mood="hacker">
- Translater's note: keikaku means plan.
+ Translator's note: keikaku means plan.
</Conv>
There's a general rule of thumb when it comes to everything that humans have ever produced: 90% of everything is absolute garbage and should be ignored. This is even more true when it comes to published works, email, and social media posts. The vast majority of everything that is published is either advertising or not high enough quality to engage with.