Skip to content

fix(deploy-setup.yaml): correct syntax error in kubectl export command #46

fix(deploy-setup.yaml): correct syntax error in kubectl export command

fix(deploy-setup.yaml): correct syntax error in kubectl export command #46

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
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 }}