-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat: Create release process #3485
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check after merge if latest
is build, and user can run Busola via docker using latest images.
Check internal docs deploy-PR-on-cluster
if changes to kustomization will break our previous flow.
context: backend | ||
export-tags: true | ||
tags: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure that we can remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export-tags
is not needed in my opinion. According to docs:
description: Export parsed tags as build-args into dockerfile. Each tag will have format TAG_x, where x is the tag name passed along with the tag
I think that it's unnecessary complication and it hides the build logic.
export-tags: true | ||
tags: latest | ||
tags: ${{ inputs.tag != '' && inputs.tag || 'latest' }} | ||
build-args: ${{ inputs.tag != '' && format('tag={0}', inputs.tag) || '' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure after first release on dev, that it is working and displayed correctly
.github/workflows/create-release.yml
Outdated
# integrations: | ||
# needs: create-draft | ||
# secrets: inherit | ||
# uses: ./.github/workflows/_integration-tests.yaml | ||
# with: | ||
# image: europe-docker.pkg.dev/kyma-project/prod/serverless-operator:${{ github.event.inputs.name }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it for now, will be done in separate task
.github/workflows/create-release.yml
Outdated
# needs: upgrade-images | ||
create-release: | ||
name: Create release | ||
needs: [ build-web, build-backend ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs: [ build-web, build-backend ] | |
needs: [ build-web, build-backend, build-local ] |
fetch-depth: 0 | ||
ref: ${{ github.ref_name }} # Checkout to latest branch changes | ||
ref: ${{ github.ref_name }} # checkout to latest branch changes ( by default this action checkouts to the SHA that triggers action ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if this fetch-depth
is needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, according to docs:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Default: 1
fetch-depth: ''
```
If we want to create changelog, it's needed
@@ -15,7 +16,7 @@ ENV CI true | |||
|
|||
COPY . /app | |||
|
|||
RUN yq -i '.version = "'${default_tag}'"' public/version.yaml && \ | |||
RUN export TAG=${tag:-$default_tag} && yq -i '.version = "'${TAG}'"' public/version.yaml && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some comment to clarify what's going on
|
||
envsubst < "${TMP_DIR}"/ingress/ingress.tpl.yaml > "${TMP_DIR}"/ingress/ingress.yaml | ||
kubectl apply -k "${TMP_DIR}"/ingress --namespace=$NAMESPACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be changed with #3493
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, waiting for second review to approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add documentation: #3375 (comment)
Description
Changes proposed in this pull request:
Related issue(s)
Definition of done
backlog#4567
Releasing with semantic versioning #3375