From a956454f42fcc0c6998316076a1323a36cecc646 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 16 Sep 2025 15:05:40 +0700 Subject: [PATCH] fix cicd --- .forgejo/workflows/ci-cd.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/ci-cd.yml b/.forgejo/workflows/ci-cd.yml index c775fa1..141db20 100644 --- a/.forgejo/workflows/ci-cd.yml +++ b/.forgejo/workflows/ci-cd.yml @@ -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