feat(test_deploy.yaml): add kubectl_config_file parameter to CI workflow #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|
||
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 }} |