|
|
@ -86,7 +86,7 @@ jobs: |
|
|
|
id: latestrelease |
|
|
|
id: latestrelease |
|
|
|
if: inputs.environment == 'production' |
|
|
|
if: inputs.environment == 'production' |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/${REPO_URL}/releases/latest | jq '.tag_name' | sed 's/\"//g')" |
|
|
|
echo "releasetag=$(curl -s https://api.github.com/repos/${REPO_URL}/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_OUTPUT |
|
|
|
|
|
|
|
|
|
|
|
- name: Confirm release tag |
|
|
|
- name: Confirm release tag |
|
|
|
if: inputs.environment == 'production' |
|
|
|
if: inputs.environment == 'production' |
|
|
@ -102,8 +102,8 @@ jobs: |
|
|
|
- name: Get tags |
|
|
|
- name: Get tags |
|
|
|
id: tags |
|
|
|
id: tags |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
echo "::set-output name=commit-tag::$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo $(git log -1 '--format=format:%H'); else echo ${{ github.sha }}; fi)" |
|
|
|
echo "commit-tag=$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo $(git log -1 '--format=format:%H'); else echo ${{ github.sha }}; fi)" >> $GITHUB_OUTPUT |
|
|
|
echo "::set-output name=additional-tag::$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo ${{ steps.latestrelease.outputs.releasetag }}; else echo ${{ env.timestamp }}; fi)" |
|
|
|
echo "additional-tag=$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo ${{ steps.latestrelease.outputs.releasetag }}; else echo ${{ env.timestamp }}; fi)" >> $GITHUB_OUTPUT |
|
|
|
|
|
|
|
|
|
|
|
- name: Add environment tag to existing image |
|
|
|
- name: Add environment tag to existing image |
|
|
|
env: |
|
|
|
env: |
|
|
|