-
Notifications
You must be signed in to change notification settings - Fork 3
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
Gjennomgang og generelle forbedringer i Github workflows #325
Milestone
Comments
elsand
moved this to 🔖 Klar for implementering
in ⚠️ Dialogporten / Arbeidsflate - GAMMEL - se https://github.com/orgs/Altinn/projects/146 ⚠️
Jan 9, 2024
This was referenced Jan 9, 2024
arealmaas
moved this from 🔖 Klar for implementering
to Under arbeid
in ⚠️ Dialogporten / Arbeidsflate - GAMMEL - se https://github.com/orgs/Altinn/projects/146 ⚠️
Jan 10, 2024
arealmaas
added a commit
that referenced
this issue
Jan 10, 2024
First refactor in the line of a few more. Refactored - [X] Refactor buildTestPublish to not trigger on pull requests - [X] Create a new workflow for pull requests and trigger buildTestPublish without publishing artifacts Related to #325
For at denne tasken ikke skal bli veldig bloated, så tenker jeg at vi fullfører den checklisten og så kan vi evt. lage noen flere tasks basert på notatene |
elsand
added
needs refinement
needs consideration
Requires additional consideration
and removed
needs refinement
labels
Jan 16, 2024
arealmaas
added a commit
that referenced
this issue
Jan 17, 2024
Issue: #325 **What's done:** - **Using .bicepparam instead of the json parameters file**: No default values are set for most of the parameters now, so will be empty if environment variables are not set - **Split the deployment script**: Split the deployBicep.ps1 into several actions that produces values sent as either pure parameters or secrets to the bicep file. Also using the `arm-deploy` github action instead of command line `az`. See `Deploy.yml` - **Flattened object parameters**: Flattened the keyvault and secrets parameters for easier visibility and validation - **Triggers a dry-run from pull requests**: The `Deploy.yml` action takes an optional parameter `dry-run` to **Potential future tasks & discussions:** - **Output the result of the `what-if` to the pull request as a comment.**: The way to get this working seems to be using --pretty-print and parsing the value. Haven't found any solution that can do this in a smooth way for us.. 🤔 Maybe this can inspire us: https://dev.to/omiossec/arm-template-deployment-the-what-if-option-for-your-azure-deployments-17f7 - **consider using --rollback-on-error**: When deploying using the arm-deploy, we could supply the --rollback-on-error flag if we find it necessary - **Potentially use kv.getSecret in bicepparam**: Instead of using environment variables we might consider fetching the secrets for the environment in the bicepparam files (or whether that just pollutes the bicepparam file..) https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/key-vault-parameter?tabs=azure-cli#use-getsecret-function - **Use version instead of git_sha**: To follow IAC principles more closely we could put the version of the deployed image in the source code. (through a new action that commits the resolved version number maybe), or we could split the deployment of container apps and the rest of the infrastructure --------- Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
arealmaas
added a commit
that referenced
this issue
Jan 18, 2024
Issue: #325 - Mistenker at det er dette som forårsaker at vi må restore for hvert bygg. Tror ikke string interpolation er så godt støttet. Med denne er vi mer verbose, men også mer eksplisitt på hva vi drar inn i Dockerfilen. Kan også optimaliseres med å kun kopiere inn relevante prosjekter istedenfor hele `src`-mappen. - Satte også `sha` til hvert image slik at vi vet at vi bruker samme versjon av `8.0` inntil vi velger å oppgradere det på et tidspunkt
Nå tror jeg vi godt kan sette den her til done! Skulle gjerne sett på å få opp et staging-miljø, men det tar vi nok i en annen task |
arealmaas
moved this from Under arbeid
to Code Review og PR
in ⚠️ Dialogporten / Arbeidsflate - GAMMEL - se https://github.com/orgs/Altinn/projects/146 ⚠️
Jan 18, 2024
arealmaas
moved this from Code Review og PR
to Testing
in ⚠️ Dialogporten / Arbeidsflate - GAMMEL - se https://github.com/orgs/Altinn/projects/146 ⚠️
Jan 18, 2024
oskogstad
moved this from Testing
to Under arbeid
in ⚠️ Dialogporten / Arbeidsflate - GAMMEL - se https://github.com/orgs/Altinn/projects/146 ⚠️
Mar 4, 2024
arealmaas
added a commit
that referenced
this issue
Mar 5, 2024
Closing #325 --------- Co-authored-by: Ole Jørgen Skogstad <skogstad@softis.net>
arealmaas
moved this from Under arbeid
to Ferdig
in ⚠️ Dialogporten / Arbeidsflate - GAMMEL - se https://github.com/orgs/Altinn/projects/146 ⚠️
Mar 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tasks
Notes for later:
** So we can test a more complete workflow
The text was updated successfully, but these errors were encountered: