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

⬆️ Bump yq version #41

Merged
merged 5 commits into from
Jul 12, 2022
Merged

⬆️ Bump yq version #41

merged 5 commits into from
Jul 12, 2022

Conversation

flaxel
Copy link
Contributor

@flaxel flaxel commented Jul 1, 2022

Type of Change

  • Bugfix
  • Enhancement / new feature
  • Refactoring
  • Documentation

Description

  • bump yq version
  • using of the yq action is not necessary because it is already part of the ubuntu image
  • test it with this pr in this run

Checklist

  • Write tests
  • Make sure all tests pass
  • Update documentation
  • Review the Contributing Guideline and sign CLA
  • Reference relevant issue(s) and close them after merging

@flaxel flaxel changed the base branch from main to download-yq July 1, 2022 17:48
@flaxel flaxel force-pushed the bump-yq branch 4 times, most recently from bcb5002 to 03e65f5 Compare July 1, 2022 19:36
@flaxel flaxel linked an issue Jul 1, 2022 that may be closed by this pull request
@flaxel flaxel marked this pull request as ready for review July 1, 2022 19:39
@flaxel flaxel requested a review from a team as a code owner July 1, 2022 19:39
@flaxel flaxel requested review from 0x46616c6b, axdotl, ricoberger and a team and removed request for a team July 1, 2022 19:39
@flaxel flaxel changed the title Bump yq ⬆️ Bump yq version Jul 1, 2022
@flaxel flaxel mentioned this pull request Jul 1, 2022
9 tasks
@@ -163,40 +163,44 @@ runs:
if [[ ( $GITHUB_REF == refs/heads/master || $GITHUB_REF == refs/heads/main ) && -n "${{ inputs.gitopsstage }}" ]]; then
echo "Run update for STAGE"
while IFS= read -r line; do
array=($line)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

split input by blank

action.yml Outdated
Comment on lines 167 to 174
echo "Check if path $line exists and get old current version"
yq r -e $line
yq -e .${array[1]} ${array[0]}
echo "Run update $line ${{ inputs.dockerregistry }}/${{ inputs.dockerimage }}:${{ steps.preparation.outputs.tag }}"
yq w -i $line ${{ inputs.dockerregistry }}/${{ inputs.dockerimage }}:${{ steps.preparation.outputs.tag }}
yq -i .${array[1]}=\"${{ inputs.dockerregistry }}/${{ inputs.dockerimage }}:${{ steps.preparation.outputs.tag }}\" ${array[0]}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

migrated the calls from version 3 to 4

Comment on lines -153 to -157
# download and install yq
sudo wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines -159 to -163
git clone https://${{ inputs.gitopsuser }}:${{ inputs.gitopstoken }}@github.com/${{ inputs.gitopsorganization }}/${{ inputs.gitopsrepository }}.git .github/${{ inputs.gitopsrepository }}
cd .github/${{ inputs.gitopsrepository }}
echo "Repository ${{ inputs.gitopsorganization }}/${{ inputs.gitopsrepository }} was cloned successfully "
Copy link
Contributor Author

@flaxel flaxel Jul 2, 2022

Choose a reason for hiding this comment

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

use explicit checkout action

* 🎨 reformat table

* 🔥 remove gitopsenabled

* 🔥 remove dockerenabled

* 📝 improve usage documentation

* 🎨 add missing docker image

* 🚚 rename parameters (#45)
@flaxel flaxel merged commit 26579b4 into download-yq Jul 12, 2022
@flaxel flaxel deleted the bump-yq branch July 12, 2022 12:49
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⬆️ Bump yp binary version
2 participants