-
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.
pipeline for deploy backend on release
- Loading branch information
1 parent
4fa26ea
commit 7e5180c
Showing
4 changed files
with
77 additions
and
0 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,18 @@ | ||
[Unit] | ||
Description=Podman container-ikapiar-backend.service | ||
Documentation=man:podman-generate-systemd(1) | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
Environment=PODMAN_SYSTEMD_UNIT=%n | ||
Restart=on-failure | ||
TimeoutStopSec=70 | ||
ExecStartPre=/bin/bash /apps/ikapiar-backend/container-ikapiar-pre.sh | ||
ExecStart=/usr/bin/podman start ikapiar-backend | ||
ExecStop=/usr/bin/podman stop -t 10 ikapiar-backend | ||
ExecStopPost=/usr/bin/podman stop -t 10 ikapiar-backend | ||
Type=forking | ||
|
||
[Install] | ||
WantedBy=default.target |
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,5 @@ | ||
podman ps -q --filter "name=ikapiar-backend" | grep -q . && \ | ||
podman stop ikapiar-backend && \ | ||
podman rm ikapiar-backend && \ | ||
podman pull ghcr.io/ikapiar/backend:latest && \ | ||
podman create --name ikapiar-backend --restart always --pull always --env-file /apps/ikapiar-backend/env -p 4000:4000 ghcr.io/ikapiar/backend:latest |
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