fix: fixes broken build
This commit is contained in:
21
.github/workflows/deploy.yml
vendored
21
.github/workflows/deploy.yml
vendored
@@ -104,7 +104,7 @@ jobs:
|
|||||||
method: kubeconfig
|
method: kubeconfig
|
||||||
kubeconfig: ${{ secrets.PORTFOLIO_KUBECONFIG }}
|
kubeconfig: ${{ secrets.PORTFOLIO_KUBECONFIG }}
|
||||||
|
|
||||||
- name: Deploy to Kubernetes
|
- name: Prepare Image Tag
|
||||||
run: |
|
run: |
|
||||||
OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | tr '[:upper:]' '[:lower:]')
|
OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | tr '[:upper:]' '[:lower:]')
|
||||||
REPO=$(echo "${GITHUB_REPOSITORY#*/}" | tr '[:upper:]' '[:lower:]')
|
REPO=$(echo "${GITHUB_REPOSITORY#*/}" | tr '[:upper:]' '[:lower:]')
|
||||||
@@ -112,8 +112,17 @@ jobs:
|
|||||||
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
||||||
IMAGE_TAG="${{ github.event.inputs.tag || 'latest' }}"
|
IMAGE_TAG="${{ github.event.inputs.tag || 'latest' }}"
|
||||||
|
|
||||||
# Apply any other configuration changes if needed
|
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
|
||||||
envsubst < .k8s/config.yml | kubectl apply -f -
|
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
|
||||||
envsubst < .k8s/deployment.yaml | kubectl apply -f -
|
|
||||||
envsubst < .k8s/service.yaml | kubectl apply -f -
|
- name: Apply Kubernetes Manifests - Configuration
|
||||||
envsubst < .k8s/ingress.yaml | kubectl apply -f -
|
run: envsubst < .k8s/config.yml | kubectl apply -f -
|
||||||
|
|
||||||
|
- name: Apply Kubernetes Manifests - Deployment
|
||||||
|
run: envsubst < .k8s/deployment.yaml | kubectl apply -f -
|
||||||
|
|
||||||
|
- name: Apply Kubernetes Manifests - Service
|
||||||
|
run: envsubst < .k8s/service.yaml | kubectl apply -f -
|
||||||
|
|
||||||
|
- name: Apply Kubernetes Manifests - Ingress
|
||||||
|
run: envsubst < .k8s/ingress.yaml | kubectl apply -f -
|
||||||
Reference in New Issue
Block a user