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

Add workflow to allow creating image from this branch #2510

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

syed-ali-tw
Copy link
Contributor

Add workflow to allow creating image from this branch

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@syed-ali-tw syed-ali-tw force-pushed the mongo-to-pg-workflow-changes branch from ecd5d0c to 4e48c79 Compare January 24, 2025 15:40
@syed-ali-tw syed-ali-tw requested a review from dj-maisy January 24, 2025 15:42
@syed-ali-tw syed-ali-tw force-pushed the mongo-to-pg-workflow-changes branch from 4e48c79 to 1edda29 Compare January 24, 2025 16:54
Copy link
Member

@dj-maisy dj-maisy left a comment

Choose a reason for hiding this comment

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

Few things to suggest.

Comment on lines 19 to 25
ecrRepositoryName:
description: 'ECR repo name to push image to'
required: true
type: choice
options:
- publisher-on-postgres-branch
default: 'publisher-on-postgres-branch'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ecrRepositoryName:
description: 'ECR repo name to push image to'
required: true
type: choice
options:
- publisher-on-postgres-branch
default: 'publisher-on-postgres-branch'

As there's only one ECR Repo that you intend to target, I'd consider removing this option.

uses: alphagov/govuk-infrastructure/.github/workflows/build-and-push-multiarch-image.yml@main
with:
gitRef: ${{ inputs.gitRef || github.event.release.tag_name }}
ecrRepositoryName: ${{ inputs.ecrRepositoryName }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ecrRepositoryName: ${{ inputs.ecrRepositoryName }}
ecrRepositoryName: publisher-on-postgres-branch

...and hardcode this instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense

@syed-ali-tw syed-ali-tw force-pushed the mongo-to-pg-workflow-changes branch from 1edda29 to 3312083 Compare January 24, 2025 17:00
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