Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: helm collisions #1517

Merged
merged 16 commits into from
Oct 25, 2023
8 changes: 7 additions & 1 deletion .github/workflows/.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ jobs:
# Login to OpenShift (NOTE: project command is a safeguard)
oc login --token=${{ secrets.oc_token }} --server=${{ vars.oc_server }}
oc project ${{ vars.oc_namespace }}


# Interrupt any previous jobs (status = pending-upgrade)
PREVIOUS=$(helm status ${{ github.event.repository.name }}-${{ inputs.target }} | jq.info.status)
if [ "PREVIOUS" = "pending-upgrade" ]; then
helm rollback ${{ github.event.repository.name }}-${{ inputs.target }}
fi

# Deploy Helm Chart
helm dependency update
helm upgrade \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
environment: test
tag: ${{ needs.semver.outputs.semver }}
target: test

Expand Down Expand Up @@ -126,6 +127,7 @@ jobs:
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
environment:
DerekRoberts marked this conversation as resolved.
Show resolved Hide resolved
tag: ${{ needs.semver.outputs.semver }}
target: prod

Expand Down
Loading