diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 07ca442..179313b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,7 +15,7 @@ jobs: git clone "https://code.chagarlamudi.net/raghu-ch/rc-portfolio.git" . - name: Build Docker image - run: docker build -t rc-portfolio:latest ./wrong-path + run: docker build -t rc-portfolio:latest . - name: Stop old container run: docker stop rc-portfolio || true @@ -51,22 +51,33 @@ jobs: run: | echo "mention=<@${{ secrets.DISCORD_ID_RAGHU }}>" >> $GITEA_OUTPUT - # โœ… Success notification + # Success notification - name: Discord Success Notification if: success() run: | curl -X POST -H "Content-Type: application/json" \ -d "{ - \"content\": \"โœ… **Deployment SUCCESS**\n๐Ÿ‘ค ${{ steps.discord.outputs.mention }}\n๐Ÿ“ฆ Repo: ${{ gitea.repository }}\n๐ŸŒฟ Branch: ${{ gitea.ref_name }}\" - }" \ - ${{ secrets.DISCORD_WEBHOOK_URL }} + \"content\": \"โœ… **Deployment SUCCESS**\n\ + ๐Ÿง‘โ€๐Ÿ’ป ${{ steps.discord.outputs.mention }}\n\ + ๐Ÿ—‚๏ธ Repo: ${{ gitea.repository }}\n\ + ๐ŸŒฒ Branch: ${{ gitea.ref_name }}\n\ + ๐Ÿงท Commit: [${{ steps.commit.outputs.short_sha }}](${{ steps.commit.outputs.url }})\n\ + โœ๏ธ Message: ${{ steps.message.outputs.msg }}\" + }" \ + ${{ secrets.DISCORD_WEBHOOK_URL }} - # โŒ Failure notification + # Failure notification - name: Discord Failure Notification if: failure() run: | curl -X POST -H "Content-Type: application/json" \ -d "{ - \"content\": \"โŒ **Deployment FAILED**\n๐Ÿ‘ค ${{ steps.discord.outputs.mention }}\n๐Ÿ“ฆ Repo: ${{ gitea.repository }}\n๐ŸŒฟ Branch: ${{ gitea.ref_name }}\n๐Ÿ” Check Gitea Actions logs\" + \"content\": \"โŒ **Deployment FAILED**\n\ + ๐Ÿง‘โ€๐Ÿ’ป ${{ steps.discord.outputs.mention }}\n\ + ๐Ÿ—‚๏ธ Repo: ${{ gitea.repository }}\n\ + ๐ŸŒฒ Branch: ${{ gitea.ref_name }}\n\ + ๐Ÿงท Commit: [${{ steps.commit.outputs.short_sha }}](${{ steps.commit.outputs.url }})\n\ + โœ๏ธ Message: ${{ steps.message.outputs.msg }}\n\ + ๐Ÿ” Check Gitea Actions logs\" }" \ ${{ secrets.DISCORD_WEBHOOK_URL }}