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

[SENP-648] feat(ecs-deploy): improve consistency of workflows parameters #83

Merged
merged 9 commits into from
Apr 17, 2024

Conversation

jdassonvil
Copy link
Contributor

@jdassonvil jdassonvil commented Apr 12, 2024

ecs-deploy:

  • docker_image_tag is now optional on the ecs-deploy deploy workflow, this will make applications that have a static image tag easier to configure.
  • docker_image_tag is now deprecated in favour of version, this term is closer to the level of abstraction of this workflow.
  • when using version one might set use_version_as_docker_image_tag to false to avoid the version being passed as docker_image_tag to the terraform apply (default is true, this is the most common usage)

deployment-notification:

  • current_version is now deprecated in favour of former_version and deployed_version in favour of new_version, this should reduce the ambiguity when using this action.

@jdassonvil jdassonvil force-pushed the jerome/optionnal-docker-args branch 2 times, most recently from 4dba87e to 89c2952 Compare April 12, 2024 09:29
@jdassonvil jdassonvil changed the title feat(ecs-deploy): make docker_image_tag optionnal feat(ecs-deploy): improve consistency of workflows parameters Apr 12, 2024
@jdassonvil jdassonvil force-pushed the jerome/optionnal-docker-args branch from 89c2952 to 78d4aba Compare April 12, 2024 09:32
@jdassonvil jdassonvil changed the title feat(ecs-deploy): improve consistency of workflows parameters [SENP-648] feat(ecs-deploy): improve consistency of workflows parameters Apr 12, 2024
@jdassonvil jdassonvil marked this pull request as ready for review April 12, 2024 09:32
@jdassonvil jdassonvil requested a review from a team April 12, 2024 09:32
Copy link

@jdassonvil jdassonvil force-pushed the jerome/optionnal-docker-args branch from 78d4aba to 70718d6 Compare April 12, 2024 10:42
Copy link
Contributor

@floriantz floriantz left a comment

Choose a reason for hiding this comment

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

Mostly looks good to me, though I didn't test it so I might have missed something.

Comment on lines +41 to +43
use_version_as_docker_image_tag:
type: boolean
default: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add the required block to make the behaviour explicit here, I admit I don't remember which is the default and we add it whether we set it to false or true in the other fields.

current_version: ${{ steps.current_version.outputs.image_tag }}
deployed_version: ${{ inputs.docker_image_tag }}
former_version: ${{ steps.ecs_lookup.outputs.image_tag || steps.git_hash.output.previous }}
new_version: ${{ inputs.docker_image_tag || steps.git_hash.output.current }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the lint errors due to the linter having difficulty with understanding the output of the new workflow ?

@jdassonvil jdassonvil force-pushed the jerome/optionnal-docker-args branch from 146f69e to 9c6e045 Compare April 15, 2024 12:51
@jdassonvil jdassonvil force-pushed the jerome/optionnal-docker-args branch from 72f8f95 to 8d53dfb Compare April 15, 2024 16:04
@jdassonvil jdassonvil merged commit 777774a into master Apr 17, 2024
1 check passed
@jdassonvil jdassonvil deleted the jerome/optionnal-docker-args branch April 17, 2024 07:29
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