Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
pablokbs committed Oct 13, 2023
1 parent c4f5b39 commit 75552e9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 42 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,15 @@ jobs:
-
name: deploy to cluster
uses: steebchen/[email protected]
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/[email protected]
env:
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"'
2 changes: 0 additions & 2 deletions .kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ kind: Kustomization
namespace: prueba

resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- ngrok.yaml
4 changes: 0 additions & 4 deletions .kustomize/namespace.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions .kustomize/ngrok.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .kustomize/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ spec:
targetPort: http
selector:
name: prueba-gha
type: LoadBalancer
7 changes: 0 additions & 7 deletions ci/test.yaml

This file was deleted.

0 comments on commit 75552e9

Please sign in to comment.