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
17 changes: 14 additions & 3 deletions .github/workflows/argocd-tags-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,22 @@ jobs:
chmod +x yq
sudo mv yq /usr/bin/yq

- name: Generate Tag for Release
- name: Echo GitHub Context and env for Logs
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
env

- name: Create GlueOps Tags
uses: Glueops/github-actions-create-container-tags@main
id: create-tags

- name: Get Container Tag for Release/Repository Tag
id: TagRelease
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/')
run: |
echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
echo "TAG=${{ steps.create-tags.outputs.clean_target_ref}}" >> $GITHUB_OUTPUT

- name: Generate Tag without Release
id: TagNoRelease
Expand Down Expand Up @@ -81,7 +92,7 @@ jobs:
title: '${{ github.event.repository.name }} [${{ inputs.ENV }}] > ${{ steps.TagRelease.outputs.TAG || steps.TagNoRelease.outputs.TAG }}'
base: ${{ inputs.STACK_REPO_DEFAULT_BRANCH }}
branch: '${{ github.event.repository.name }}/update-${{ inputs.ENV }}-image-tag-${{ steps.TagRelease.outputs.TAG || steps.TagNoRelease.outputs.TAG }}'
body: "PR created via CI workflow in [${{ github.repository_owner }}/${{ github.event.repository.name }}](https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }})"
body: "PR created via CI workflow in [${{ github.repository_owner }}/${{ github.event.repository.name }}](https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}) by [${{ github.actor }}](https://github.com/${{ github.actor }})"

- name: Commit to Default Branch if PR not Desired
if: ${{ ! inputs.CREATE_PR }}
Expand Down