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
|
||||
kubeconfig: ${{ secrets.PORTFOLIO_KUBECONFIG }}
|
||||
|
||||
- name: Deploy to Kubernetes
|
||||
- name: Prepare Image Tag
|
||||
run: |
|
||||
OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | tr '[:upper:]' '[:lower:]')
|
||||
REPO=$(echo "${GITHUB_REPOSITORY#*/}" | tr '[:upper:]' '[:lower:]')
|
||||
@@ -112,8 +112,17 @@ jobs:
|
||||
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
||||
IMAGE_TAG="${{ github.event.inputs.tag || 'latest' }}"
|
||||
|
||||
# Apply any other configuration changes if needed
|
||||
envsubst < .k8s/config.yml | kubectl apply -f -
|
||||
envsubst < .k8s/deployment.yaml | kubectl apply -f -
|
||||
envsubst < .k8s/service.yaml | kubectl apply -f -
|
||||
envsubst < .k8s/ingress.yaml | kubectl apply -f -
|
||||
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
|
||||
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
|
||||
|
||||
- name: Apply Kubernetes Manifests - Configuration
|
||||
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