chore: stable tag for docker image

This commit is contained in:
Md Hussain Nagaria 2025-01-21 17:09:42 +05:30 committed by GitHub
parent 8ec406dad0
commit 2cfaf383d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ jobs:
- name: Set Image Tag - name: Set Image Tag
run: | run: |
echo "IMAGE_TAG=${{ github.ref_name == 'develop' && 'latest' || 'v15' }}" >> $GITHUB_ENV echo "IMAGE_TAG=${{ github.ref_name == 'develop' && 'latest' || 'v15' }}" >> $GITHUB_ENV
echo "STABLE_TAG=${{ github.ref_name == 'develop' && 'nightly' || 'stable' }}" >> $GITHUB_ENV
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -60,7 +61,9 @@ jobs:
file: builds/images/layered/Containerfile file: builds/images/layered/Containerfile
tags: > tags: >
ghcr.io/${{ github.repository }}:${{ github.ref_name }}, ghcr.io/${{ github.repository }}:${{ github.ref_name }},
ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }},
ghcr.io/${{ github.repository }}:${{ env.STABLE_TAG }}
build-args: | build-args: |
"FRAPPE_BRANCH=${{ env.FRAPPE_BRANCH }}" "FRAPPE_BRANCH=${{ env.FRAPPE_BRANCH }}"
"APPS_JSON_BASE64=${{ env.APPS_JSON_BASE64 }}" "APPS_JSON_BASE64=${{ env.APPS_JSON_BASE64 }}"