This commit is contained in:
parent
04f8c1ad03
commit
a956454f42
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue