Skip to content

feat(test_deploy.yaml): add kubectl_config_file parameter to CI workflow #45

feat(test_deploy.yaml): add kubectl_config_file parameter to CI workflow

feat(test_deploy.yaml): add kubectl_config_file parameter to CI workflow #45

Workflow file for this run

name: Test Deploy
on:
push:
branches:
- develop
jobs:
setup-dagger:
uses: ./.github/workflows/dagger-setup.yaml
build-publish-image:
needs: setup-dagger
uses: ./.github/workflows/build-publish-image.yaml
secrets: inherit
with:
repository: dictyBase/static-server.git
image: goran
ref: develop
dockerfile: Dockerfile
namespace: cybersiddhu
dagger_version: ${{ needs.setup-dagger.outputs.dagger_version }}
dagger_checksum: ${{ needs.setup-dagger.outputs.dagger_checksum }}
deploy-setup:
needs: setup-dagger
uses: ./.github/workflows/deploy-setup.yaml

Check failure on line 27 in .github/workflows/test_deploy.yaml

View workflow run for this annotation

GitHub Actions / Test Deploy

Invalid workflow file

The workflow is not valid. In .github/workflows/test_deploy.yaml (Line: 27, Col: 11): Error from called workflow dictyBase/workflows/.github/workflows/deploy-setup.yaml@439b3863c11f3878254239915074b145e1a8c803 (Line: 70, Col: 14): Unexpected end of expression: 'kubectl_config_file'. Located at position 49 within expression: format('{0}/{1}', env.KUBECONFIG_FOLDER, inputs.kubectl_config_file
secrets: inherit
with:
cluster: ${{ vars.DEV_STAGING_CLUSTER }}
cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }}
dagger_version: ${{ needs.setup-dagger.outputs.dagger_version }}
dagger_checksum: ${{ needs.setup-dagger.outputs.dagger_checksum }}
artifact_name: kubectl-config
kubectl_config_file: test.yaml
debug-artifact:
runs-on: ubuntu-latest
needs: deploy-setup
steps:
- name: make path
run: mkdir -p /tmp/artifact
- name: download kubectl from artifact
uses: actions/download-artifact@v4
id: cluster_config
with:
name: kubectl-config
path: /tmp/artifact
run-id: ${{ needs.deploy-setup.outputs.workflow_run_id }}
- name: list files in download folder
run: ls -l /tmp/artifact/
delete-artifact:
needs: debug-artifact
uses: ./.github/workflows/delete-artifact.yaml
with:
artifact_name: kubectl-config
# deploy-backend:
# needs: [setup-dagger, build-publish-image, deploy-setup]
# uses: ./.github/workflows/deploy-backend.yaml
# secrets: inherit
# with:
# run_id: ${{ needs.deploy-setup.outputs.workflow_run_id }}
# dagger_version: ${{ needs.setup-dagger.outputs.dagger_version }}
# dagger_checksum: ${{ needs.setup-dagger.outputs.dagger_checksum }}
# image_tag: ${{ needs.build-publish-image.outputs.image_tag }}