diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-11-07 22:09:05 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-11-07 22:09:05 -0500 |
| commit | 2369032dc930a5aa096ec725835f1c497a1dcf91 (patch) | |
| tree | b9be2ae3fa7745b39a8ef267678ffe634355bba5 | |
| parent | 4c01c34c5f218499d1150d516df88f1b51021699 (diff) | |
| download | xesite-2369032dc930a5aa096ec725835f1c497a1dcf91.tar.xz xesite-2369032dc930a5aa096ec725835f1c497a1dcf91.zip | |
try civo route
Signed-off-by: Xe Iaso <me@xeiaso.net>
| -rw-r--r-- | .github/workflows/earthly.yml | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml index b04bd7e..1c26b19 100644 --- a/.github/workflows/earthly.yml +++ b/.github/workflows/earthly.yml @@ -57,6 +57,13 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: azure/setup-kubectl@v4 + - name: Install civo + uses: civo/action-civo + with: + token: ${{ secrets.CIVO_TOKEN }} + - name: Save Civo kubeconfig + run: civo kubernetes config aeacus - uses: dorny/paths-filter@v3 id: changes with: @@ -70,17 +77,8 @@ jobs: - 'go.sum' - 'Earthfile' - 'manifest/**/*.yaml' - - if: steps.changes.outputs.src == 'true' - uses: actions-hub/kubectl@master - env: - KUBE_CONFIG: ${{ secrets.KUBECONFIG }} - KUBE_CONTEXT: aeacus - with: - args: apply -k manifest - - if: steps.changes.outputs.src == 'true' - uses: actions-hub/kubectl@master - env: - KUBE_CONFIG: ${{ secrets.KUBECONFIG }} - KUBE_CONTEXT: aeacus - with: - args: rollout restart -n default deploy/xesite + - name: "Deploy" + if: steps.changes.outputs.src == 'true' + run: | + kubectl apply -k manifest + kubectl rollout restart -n default deploy/xesite |
