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

Update dashboard_deploy_template.yaml #90

Merged
merged 5 commits into from
Jan 23, 2025
Merged

Update dashboard_deploy_template.yaml #90

merged 5 commits into from
Jan 23, 2025

Conversation

rmbielby
Copy link
Contributor

@rmbielby rmbielby commented Jan 23, 2025

Brief overview of changes

If statement failed in deploy script, looks like it just returned a false due to the syntax used:

[[: main: unexpected operator

The result was that the condition was always false and so a dashboard always deployed to dev-* instead of the live dashboard.

Did a bit of digging and it looks like this is just the limited functionality of sh versus bash, so I've set the faulty bit of the pipeline to run in bash. I've tested this out on the attendance dashboard and it sets the deploy target successfully.

Attendance dashboard deploy triggered from main:
https://github.com/dfe-analytical-services/attendance-data-dashboard/actions/runs/12928294233/job/36057454809

Attendance dashboard deploy triggered from other branch:
https://github.com/dfe-analytical-services/attendance-data-dashboard/actions/runs/12928068789/job/36057911578

@rmbielby rmbielby requested a review from cjrace January 23, 2025 12:29
@rmbielby rmbielby self-assigned this Jan 23, 2025
@rmbielby rmbielby merged commit 6cf9344 into main Jan 23, 2025
10 checks passed
@rmbielby rmbielby deleted the rmbielby-patch-1 branch January 23, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants