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

ci: add production workflow #1019

Merged
merged 3 commits into from
Aug 19, 2024
Merged

ci: add production workflow #1019

merged 3 commits into from
Aug 19, 2024

Conversation

arealmaas
Copy link
Collaborator

Description

Will run a dry-run of the deployment to both infra and apps on a new release. Will have to be reviewed manually before deployment happens.

We now have a full workflow for deployment to production. Some time in the not so very near future, I think it would be wise to split up the dry-run part and the deployment itself. As right now it would require a review from any of us to even start the dry-run, which should happen automatically on every release.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

Documentation

  • Documentation is updated (either in docs-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)

@arealmaas arealmaas requested a review from a team as a code owner August 15, 2024 20:25
function-project-path: "./src/Digdir.Tool.Dialogporten.SlackNotifier"
environment: prod

run-e2e-tests:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to run this in production? Would be sweet to be able to, but is it safe atm?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elsand hva tenker du?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Her er mine umiddelbare tanker. Sist gang jeg så testene mener jeg å huske at de for det første skrev til Dialogporten, og for det andre at de gjorde det på test ressurser (fra ressurs registeret i test). Vil de i det hele tatt kjøre? Tror egentlig vi heller burde ha et flyktig miljø å kjøre disse i før vi i det hele tatt får lov til å publisere til prod.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True true. Vi får ta en runde på det i refinement kanskje? Kan kommentere ut inntil videre!

Copy link
Collaborator

@MagnusSandgren MagnusSandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeg verken approver eller stopper denne pren ettersom jeg ikke har nok info om e2e testene atm. Sett bort i fra "run-e2e-tests steget, og kanskje en rouge "todo" ser jeg ikke noe i veien for å approve denne.

name: Get current version
uses: ./.github/workflows/action-get-current-version.yml

# todo: should not need to re-build and re-publish the image here. Use existing image instead
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skal dette gjøres som del av denne PRen eller en annen? Har vi i så fall et issue på det?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yess godt poeng. Lagde et issue på det nå. #1023

function-project-path: "./src/Digdir.Tool.Dialogporten.SlackNotifier"
environment: prod

run-e2e-tests:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Her er mine umiddelbare tanker. Sist gang jeg så testene mener jeg å huske at de for det første skrev til Dialogporten, og for det andre at de gjorde det på test ressurser (fra ressurs registeret i test). Vil de i det hele tatt kjøre? Tror egentlig vi heller burde ha et flyktig miljø å kjøre disse i før vi i det hele tatt får lov til å publisere til prod.

Copy link

@arealmaas arealmaas merged commit 9f4760d into main Aug 19, 2024
18 checks passed
@arealmaas arealmaas deleted the ci/add-production-workflow branch August 19, 2024 12:50
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