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

feat: Update release workflow #16642

Closed
wants to merge 11 commits into from
Closed

feat: Update release workflow #16642

wants to merge 11 commits into from

Conversation

xpuska513
Copy link
Contributor

@xpuska513 xpuska513 commented Sep 13, 2022

What

  • Update release workflow with new part for releasing Helm charts
  • Match all helm chart version with actual airbyte version so bumpversion will work properly on helm charts
  • Fix indentation issue for extraContainers definition
  • Update all charts versions and readmes to match the current Airbyte version

How

  • Disable "Publish OSS Helm Chart workflow", move and incorporate logic with airbyte release logic.

Notes

The hotfix workflow will be disabled(only workflow dispatch will be left), for testing purposes.

@github-actions github-actions bot added area/platform issues related to the platform kubernetes labels Sep 13, 2022
Comment on lines 88 to 107
- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
message: 'Bump subchart version to ${{ steps.release_airbyte.outputs.NEW_VERSION }}'
add: '.'
cwd: './github/helm-charts'

- name: Release main helm chart
shell: bash
run: |
cd ./charts/airbyte && helm dep update && cd -
helm package ./charts/airbyte -d ./.github/helm-charts --version ${{ steps.release_airbyte.outputs.NEW_VERSION }}
helm repo index ./.github/helm-charts/

- name: Commit and push changes
uses: EndBug/add-and-commit@v9
with:
message: 'Bump main chart version to ${{ steps.release_airbyte.outputs.NEW_VERSION }}'
add: '.'
cwd: './github/helm-charts'
Copy link
Contributor

@davinchia davinchia Sep 13, 2022

Choose a reason for hiding this comment

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

should all of this happen in an action?

in that way we can reuse this in the publish for Cloud workflow as well as the individual Helm publish workflow

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, let me update it and put it into separate action then

@@ -37,3 +37,12 @@ VERSION=$NEW_VERSION SUB_BUILD=PLATFORM ./gradlew publish
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
VERSION=$NEW_VERSION ./tools/bin/publish_docker.sh
echo "Completed building and publishing PLATFORM..."

echo "Packaging and publishing HELM CHARTS version $NEW_VERSION for git revision $GIT_REVISION..."
Copy link
Contributor

@davinchia davinchia Sep 13, 2022

Choose a reason for hiding this comment

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

Curious, why release the subcharts in a spot different from the main helm charts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've already covered it during our call, made it that way since we're packaging main chart using dependencies that were already published, I can make it use local dependencies but don't know how it will work and probably this approach will require clonning of the remote git repo in order to deploy it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah. What I'm asking is why do this in this spot instead of in the Github Action? It seems like this can be combined with the above action. It's somewhat confusing today since the subcharts are released at a different spot from the main chart so it's not obvious we have to release the subchart before the main charts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, already made an action for it, will push updated workflow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davinchia updated + added workflow for publishing charts manually(separately from the OSS releases)

@xpuska513 xpuska513 temporarily deployed to more-secrets September 15, 2022 10:20 Inactive
@xpuska513 xpuska513 temporarily deployed to more-secrets September 15, 2022 12:10 Inactive
@xpuska513 xpuska513 temporarily deployed to more-secrets September 15, 2022 12:42 Inactive
@xpuska513 xpuska513 temporarily deployed to more-secrets September 15, 2022 13:48 Inactive
@xpuska513 xpuska513 temporarily deployed to more-secrets September 15, 2022 15:47 Inactive
@evantahler evantahler removed their request for review October 7, 2022 23:14
@xpuska513 xpuska513 closed this Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform kubernetes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants