Skip to content

Add github actions for packer build#96

Open
phillebaba wants to merge 8 commits into
mainfrom
feature/packer-github
Open

Add github actions for packer build#96
phillebaba wants to merge 8 commits into
mainfrom
feature/packer-github

Conversation

@phillebaba

Copy link
Copy Markdown
Contributor

No description provided.

@nissessenap nissessenap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some thoughts but as always I think it looks good.

required: false
default: '["ubuntu-latest"]'
ENVIRONMENTS:
description: '{"environments":[{"name":"dev"}, {"name":"qa"}]}'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need this building packer images? Isn't it enough with one time?

type: string
IMAGE:
description: "Image to build Packer with"
required: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Github workflow is funny, even if you define "default" and add "required" it will still force the user to define the image. So you have to set required: false :(

required: true
type: string
PACKER_TEMPLATE_REPO_BRANCH:
description: "Branch to the packer template from"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We shouldn't default to main?

ENV: ${{ matrix.environments.name }}
TMP_DIR: ${{ runner.temp }}
IMAGE: ${{ inputs.IMAGE }}
RESOURCE_GROUP: "rg-${{ matrix.environments.name }}-we-${{ inputs.RESOURCE_GROUP_NAME_SUFFIX }}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think that we always can assume that we are in region we I would add this as a variable.

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