Merge pull request #71 from HideyoshiSolutions/fix/fixes-decrypt-secrets-ci
Fix/fixes decrypt secrets ci
This commit is contained in:
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
@@ -2,6 +2,11 @@ name: ci
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Tag to deploy'
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -122,7 +127,7 @@ jobs:
|
|||||||
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
|
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
|
||||||
|
|
||||||
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
||||||
IMAGE_TAG="sha-${SHORT_SHA}"
|
IMAGE_TAG=${{ github.event.inputs.tag || format('sha-{0}', github.sha) }}
|
||||||
|
|
||||||
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
|
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
|
||||||
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
|
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
|
||||||
@@ -139,7 +144,7 @@ jobs:
|
|||||||
- name: Decrypt SOPS Secrets Test
|
- name: Decrypt SOPS Secrets Test
|
||||||
run: |
|
run: |
|
||||||
cd .k8s
|
cd .k8s
|
||||||
sops -d secrets.enc.yml secrets.yml
|
sops -d secrets.enc.yml > secrets.yml
|
||||||
|
|
||||||
- name: Apply Kubernetes Manifests - Configuration
|
- name: Apply Kubernetes Manifests - Configuration
|
||||||
run: cat .k8s/config.template.yml | envsubst | kubectl apply -f -
|
run: cat .k8s/config.template.yml | envsubst | kubectl apply -f -
|
||||||
|
|||||||
Reference in New Issue
Block a user