generated from V3lop5/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from NOWUM/fix-deployment
Fix deployment
- Loading branch information
Showing
5 changed files
with
48 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
default: | ||
tags: | ||
- nowum | ||
|
||
stages: | ||
- deploy-dev | ||
- deploy-release | ||
|
||
deploy-dev: | ||
image: alpine:latest | ||
stage: deploy-dev | ||
script: | ||
- chmod og= $SSH_ED25519 | ||
- apk update && apk add openssh-client | ||
- ssh -p 8080 -i $SSH_ED25519 -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "cd EnSysMod && docker-compose pull ensysmod-dev && docker-compose down ensysmod-dev && docker-compose up ensysmod-dev -d && docker system prune -f" | ||
only: | ||
- main | ||
environment: | ||
url: https://$SERVER_IP | ||
name: development | ||
|
||
deploy-release: | ||
image: alpine:latest | ||
stage: deploy-release | ||
script: | ||
- chmod og= $SSH_ED25519 | ||
- apk update && apk add openssh-client | ||
- ssh -p 9000 -i $SSH_ED25519 -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_IP "cd EnSysMod && docker-compose pull && docker-compose down && docker-compose up -d && docker system prune -f" | ||
only: | ||
- tags | ||
except: | ||
- branches | ||
environment: | ||
url: https://$SERVER_IP | ||
name: release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
ensysmod-dev: | ||
image: "ghcr.io/nowum/ensysmod:main" | ||
ports: | ||
- 8080:8080 | ||
|
||
ensysmod-release: | ||
image: "ghcr.io/nowum/ensysmod:latest" | ||
ports: | ||
- 9000:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters