Skip to content

Commit

Permalink
feat: working in progress with secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Apr 30, 2022
1 parent 466bf13 commit d55bb9e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
ecosystem:
type: string
required: false
containerRegistry:
type: string
required: false
default: ghcr.io

mysqlEnabled:
type: boolean
Expand Down Expand Up @@ -364,6 +368,11 @@ jobs:
echo "::set-output name=deploy_repository::$(echo $PIPELINE_SETUP | jq -r '.deploy.repository')"
echo "::set-output name=deploy_tag::$(echo $PIPELINE_SETUP | jq -r '.deploy.tag')"
- name: Install YTT
uses: vmware-tanzu/carvel-setup-action@v1
with:
only: ytt

# deploy
- name: Decrypt Dev Secrets
env:
Expand All @@ -377,10 +386,15 @@ jobs:
echo -e "#@data/values\n---\n$(cat ./manifests/k8s-secrets.env)" > ./manifests/k8s-secrets.env
cat ./manifests/k8s-secrets.env
- name: Install YTT
uses: vmware-tanzu/carvel-setup-action@v1
- name: Apply Kubernetes YAML
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:
only: ytt
args: create secret generic svc \
--from-file=./manifests/k8s-secrets.env

- name: Generates Kubernetes YAML
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
Expand Down

0 comments on commit d55bb9e

Please sign in to comment.