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

create github actions workflow init-release.yaml for preparing release #740

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

chengfang
Copy link
Collaborator

@chengfang chengfang commented Jun 12, 2024

Fixes #734

This PR adds a github actions on-demand workflow that contains necessary steps to prepare a release. This workflow is modelled after the script https://github.com/argoproj-labs/argocd-image-updater/blob/master/hack/release.sh, minus the last few steps in the end.

Note that this workflow only prepares the release, and the responsible release engineer is still responsible for verifying the output, and continue with further manual steps in order to finish the releasing.

A screenshot of the workflow input fields:
https://gist.github.com/chengfang/32f8c6f31fb0736476677abe1b8cc451

After a successful test run of the workflow in my fork, the following test PR in my fork was created:
chengfang#7

Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

Very cool! Just have some minor comments.

.github/workflows/init-release.yaml Outdated Show resolved Hide resolved
Comment on lines 84 to 89
- name: Generate new set of manifests
run: |
set -ue
make manifests IMAGE_TAG="${{ env.TARGET_TAG }}"
git diff
Copy link
Contributor

Choose a reason for hiding this comment

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

For this to work, we will need kustomize installed on the GitHub runner

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a step to install kustomize:

      - name: Install Kustomize
        uses: imranismail/setup-kustomize@v2
        with:
          kustomize-version: '5.2.1'

At the beginning of next step, echo the kustomize version. In test run, it prints the correct version:

kustomize version v5.2.1

Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@jannfis jannfis merged commit 2a065fa into argoproj-labs:master Jun 12, 2024
10 checks passed
sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
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.

Automate the release process with github actions workflow
2 participants