-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 956 Bytes
/
deploy.yaml
File metadata and controls
33 lines (31 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy to server
on:
workflow_dispatch:
push:
branches:
- develop
- main
jobs:
test-js-code:
name: Testing js code
uses: Modgy/modgy-front/.github/workflows/test.yaml@develop
build-and-push-image:
name: Build and Publish Docker Image
needs: test-js-code
uses: Modgy/modgy-devops/.github/workflows/publish_docker_image.yml@main
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
with:
API_URL: ${{ vars.API_URL }}
deploy-to-test-server:
name: Update App on Test Server
needs: build-and-push-image
uses: Modgy/modgy-devops/.github/workflows/update_service.yml@main
secrets:
SERVER_HOST: ${{ secrets.SERVER_HOST }}
SERVER_USERNAME: ${{ secrets.SERVER_USERNAME }}
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }}
with:
DOCKER_SERVICE: front