fix cicd
All checks were successful
Build & Deploy on Dev / build (push) Successful in 39s

This commit is contained in:
Warunee Tamkoo 2025-09-16 15:05:40 +07:00
parent 04f8c1ad03
commit a956454f42

View file

@ -28,11 +28,7 @@ jobs:
ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
echo "IMAGE_VERSION=${{ github.ref_name }}" | sed 's/v//g' >> $GITHUB_ENV
else
echo "IMAGE_VERSION=${{ env.IMAGE_VERSION }}-${{ github.run_number }}" >> $GITHUB_ENV
fi
echo "IMAGE_VERSION=${{ env.IMAGE_VERSION }}"
- name: Login in to registry
uses: docker/login-action@v2
with:
@ -56,7 +52,7 @@ jobs:
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
script: |
cd ~/repo
./replace-env.sh API_RECRUIT "${{ inputs.version }}"
./replace-env.sh API_RECRUIT "${{ env.IMAGE_VERSION }}"
./deploy.sh hrms-api-recruit
- name: Discord Notification