From 75552e957ba255c5531f6584e509aedc04f50211 Mon Sep 17 00:00:00 2001 From: Pablo Fredrikson Date: Fri, 13 Oct 2023 12:06:55 -0300 Subject: [PATCH] Cleaning up --- .github/workflows/cd.yml | 25 ++++--------------------- .kustomize/kustomization.yaml | 2 -- .kustomize/namespace.yaml | 4 ---- .kustomize/ngrok.yaml | 8 -------- .kustomize/service.yaml | 1 + ci/test.yaml | 7 ------- 6 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 .kustomize/namespace.yaml delete mode 100644 .kustomize/ngrok.yaml delete mode 100644 ci/test.yaml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a1678aa..2ce5563 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -34,10 +34,9 @@ jobs: - name: deploy to cluster uses: steebchen/kubectl@v2.0.0 - env: - KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} with: - args: set image --record deployment/prueba-gha prueba-gha=pablokbs/prueba-gha:${{ github.sha }} + config: ${{ secrets.KUBE_CONFIG_DATA }} + command: set image --record deployment/prueba-gha prueba-gha=pablokbs/prueba-gha:${{ github.sha }} - name: verify deployment uses: steebchen/kubectl@v2.0.0 @@ -45,21 +44,5 @@ jobs: KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} KUBECTL_VERSION: "1.28" with: - args: '"rollout status deployment/prueba-gha"' - - ngrok-watcher: - name: Ngrok watcher - runs-on: ubuntu-latest - needs: deploy-to-cluster - steps: - - - name: Get ngrok URL - id: getNgrokUrl - uses: debianmaster/kubectl@master - env: - KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }} - KUBECTL_VERSION: "1.28" - with: - args: | - URL=`kubectl -n prueba get ngrok -o=custom-columns='DATA:status.url' | tail -n1` - echo "::set-output name=url::$URL" + config: ${{ secrets.KUBE_CONFIG_DATA }} + command: '"rollout status deployment/prueba-gha"' diff --git a/.kustomize/kustomization.yaml b/.kustomize/kustomization.yaml index 02ef5a1..42a8eee 100644 --- a/.kustomize/kustomization.yaml +++ b/.kustomize/kustomization.yaml @@ -4,7 +4,5 @@ kind: Kustomization namespace: prueba resources: -- namespace.yaml - deployment.yaml - service.yaml -- ngrok.yaml diff --git a/.kustomize/namespace.yaml b/.kustomize/namespace.yaml deleted file mode 100644 index 9fd9e18..0000000 --- a/.kustomize/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: prueba diff --git a/.kustomize/ngrok.yaml b/.kustomize/ngrok.yaml deleted file mode 100644 index 9119e0d..0000000 --- a/.kustomize/ngrok.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: ngrok.com/v1alpha1 -kind: Ngrok -metadata: - name: prueba-gha -spec: - protocol: http - service: prueba-gha - port: 80 diff --git a/.kustomize/service.yaml b/.kustomize/service.yaml index 8dd3126..ad76386 100644 --- a/.kustomize/service.yaml +++ b/.kustomize/service.yaml @@ -9,3 +9,4 @@ spec: targetPort: http selector: name: prueba-gha + type: LoadBalancer diff --git a/ci/test.yaml b/ci/test.yaml deleted file mode 100644 index 3dbed57..0000000 --- a/ci/test.yaml +++ /dev/null @@ -1,7 +0,0 @@ -platform: linux -image_resource: - type: registry-image - source: {repository: alpine} -run: - path: echo - args: ["Hola desde la repo :)"]