Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codefresh/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ steps:
stage: "Deploy"
image: 'codefresh/cli:latest'
environment:
STAGE: master
- STAGE=master
commands:
- codefresh run ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/deploy-${{STAGE}} -d -b=${{CF_BRANCH}} -v CF_RELEASE_TAG=${{CF_REVISION}} -v CF_PRERELEASE_FLAG=${{CF_PRERELEASE_FLAG}} -v STAGE=${{STAGE}}
- codefresh run ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/deploy-${STAGE} -b=${{CF_BRANCH}} -v CF_RELEASE_TAG=${{CF_RELEASE_TAG}} -v CF_PRERELEASE_FLAG=${{CF_PRERELEASE_FLAG}} -v CF_SHORT_REVISION=${{CF_SHORT_REVISION}} -v CF_COMMIT_URL=${{CF_COMMIT_URL}} -v CF_COMMIT_MESSAGE="Release ${{CF_RELEASE_TAG}}" -v CF_COMMIT_AUTHOR=${{CF_COMMIT_AUTHOR}} -v CF_BRANCH_TAG_NORMALIZED=${{CF_BRANCH_TAG_NORMALIZED}} -v STAGE=${STAGE}
when:
branch:
only:
Expand Down
2 changes: 1 addition & 1 deletion codefresh/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ steps:
working_directory: /build-harness
environment:
- PIPELINE_ENV=${{STAGE}}
- CHART_NAME=monochart
- CHART_NAME=${{CF_REPO_NAME}}
- GIT_COMMIT_SHORT=${{CF_SHORT_REVISION}}
- GIT_COMMIT_URL=${{CF_COMMIT_URL}}
- GIT_COMMIT_MESSAGE=${{CF_COMMIT_MESSAGE}}
Expand Down
6 changes: 4 additions & 2 deletions codefresh/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ steps:
- cf_export GIT_BRANCH=${{CF_BRANCH}}
- cf_export PROJECT=${{CF_REPO_NAME}}
- cf_export APP_NAME=${{CF_REPO_NAME}}
- cf_export CHART_NAME=monochart
- cf_export PIPELINE_ENV=integration
- cf_export CHART_NAME=${{CF_REPO_NAME}}
- cf_export PIPELINE_ENV=preview
- cf_export NAMESPACE=pr-${{CF_PULL_REQUEST_NUMBER}}-${{CF_REPO_NAME}}
- cf_export RELEASE_NAME=${{CF_REPO_NAME}}
- cf_export APP_SCHEME=http
Expand Down Expand Up @@ -140,6 +140,8 @@ steps:
# Downgrade to helm 3.1.3: https://github.com/helm/helm/issues/7956
- "apk add --update curl make bash git kubectl@cloudposse helm@cloudposse=3.1.3-r0 helmfile@cloudposse"
- "kubectl config use-context ${{KUBE_CONTEXT}}"
# Temporary fix related to #7956 preventing us from upgrading to helm > 3.2.0
- kubectl create namespace ${{NAMESPACE}} >/dev/null 2>&1 || true
# Deploy chart to cluster in a dedicated namespace
- "helmfile --namespace ${{NAMESPACE}} --selector preview=true sync"
when:
Expand Down