Building image action builds both images first, only then notifies the deployment server. Docker compose production file added

This commit is contained in:
2026-08-04 20:41:21 +05:00
parent e802b684ff
commit b6deed78c8
2 changed files with 40 additions and 5 deletions
+15 -5
View File
@@ -10,7 +10,7 @@ env:
REPO: audio_splitter
jobs:
build-and-push:
build-and-push-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -30,10 +30,16 @@ jobs:
docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_backend:${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_backend:latest
- name: Trigger the webhook on the deployment server for backend
run: curl "https://webhook.vmn.su/hooks/pull-audio-splitter-backend"
build-and-push-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
run: |
echo "${{ secrets.CI_PUSHER_GITEA_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
- name: Build frontend image
run: |
@@ -45,5 +51,9 @@ jobs:
docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_frontend:${{ github.sha }}
docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_frontend:latest
- name: Trigger the webhook on the deployment server for frontend
run: curl "https://webhook.vmn.su/hooks/pull-audio-splitter-frontend"
notify-deployment-server:
runs-on: ubuntu-latest
steps:
- name: Trigger the webhook on the deployment server to start pulling the images
run: curl "https://webhook.vmn.su/hooks/pull-audio-splitter"