Skip to content

Commit

Permalink
feat: added current state command
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Apr 29, 2022
1 parent d2590a2 commit e5c5d32
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ jobs:
command: '${{ steps.node_setup.outputs.docker_command }}',
})
- uses: hadolint/hadolint-action@v2.0.0
- name: Dockerfile lint
uses: hadolint/hadolint-action@v2.0.0
with:
dockerfile: Dockerfile

Expand Down Expand Up @@ -370,7 +371,7 @@ jobs:
with:
only: ytt

- name: Generates kubernetes YAML
- name: Generates Kubernetes YAML
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
run: |
ytt \
Expand All @@ -383,16 +384,22 @@ jobs:
--data-value repository=${{steps.deploy_setup.outputs.deploy_repository}} \
--data-value tag=${{steps.deploy_setup.outputs.deploy_tag}} \
> ./manifests/k8s-to-apply.yml
cat ./manifests/k8s-to-apply.yml
- name: Print YAML
- name: Apply Kubernetes YAML
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
run: cat ./manifests/k8s-to-apply.yml
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: apply -f ./manifests/k8s-to-apply.yml

- name: Apply kubernetes YAML
- name: Get current state
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: apply -f ./manifests/k8s-to-apply.yml
args: get pods --ns ${{steps.deploy_setup.outputs.deploy_repository}}

0 comments on commit e5c5d32

Please sign in to comment.