Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions .github/workflows/argocd-tags-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,24 @@ jobs:
echo "TAG=$TAG" >> $GITHUB_OUTPUT

- name: Update Image Tag
working-directory: ./${{ inputs.DEPLOYMENT_CONFIGS_REPO }}
run: |
set -e
TAG=${{ steps.TagRelease.outputs.TAG || steps.TagNoRelease.outputs.TAG }}
DEPLOYMENT_CONFIGS_APP_NAME=${{ inputs.DEPLOYMENT_CONFIGS_APP_NAME || github.event.repository.name }}
yq -i ".image.tag = \"$TAG\"" ./apps/$DEPLOYMENT_CONFIGS_APP_NAME/envs/${{ inputs.ENV }}/values.yaml
git config --global --add --bool push.autoSetupRemote true
git config --local user.email "automated-github-action@glueops.dev"
git config --local user.name "GlueOps bot"
git add -A
git commit -m "${{ github.event.repository.name }}: updating ${{ inputs.ENV }} tag to $TAG, by ${{ github.actor }}"
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
with:
shell: bash
retry_on: error
timeout_minutes: 2
max_attempts: 3
command: |
set -e
cd ./${{ inputs.DEPLOYMENT_CONFIGS_REPO }}
git pull --rebase
TAG=${{ steps.TagRelease.outputs.TAG || steps.TagNoRelease.outputs.TAG }}
DEPLOYMENT_CONFIGS_APP_NAME=${{ inputs.DEPLOYMENT_CONFIGS_APP_NAME || github.event.repository.name }}
yq -i ".image.tag = \"$TAG\"" ./apps/$DEPLOYMENT_CONFIGS_APP_NAME/envs/${{ inputs.ENV }}/values.yaml
git config --global --add --bool push.autoSetupRemote true
git config --local user.email "automated-github-action@glueops.dev"
git config --local user.name "GlueOps bot"
git add -A
git commit -m "${{ github.event.repository.name }}: updating ${{ inputs.ENV }} tag to $TAG, by ${{ github.actor }}"

- name: Create PR if Desired
if: ${{ inputs.CREATE_PR }}
Expand Down