Skip to content

Commit

Permalink
feat: notice cd error when rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Dec 5, 2024
1 parent 98f3851 commit ec1cd5a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/be-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ jobs:
docker service ls | grep -iw ${REPO_NAME}_be \
&& docker service update --force ${REPO_NAME}_be \
|| docker stack deploy -c docker-compose-be.yaml ${REPO_NAME}
docker image prune -af
if [[ "$status" != "completed" ]]; then
exit 1
fi
6 changes: 5 additions & 1 deletion .github/workflows/fe-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@ jobs:
REPO_NAME=$(echo ${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')
docker service ls | grep -iw ${REPO_NAME}_fe \
&& docker service update --force ${REPO_NAME}_fe \
|| docker stack deploy -c docker-compose-fe.yaml mapletool
|| docker stack deploy -c docker-compose-fe.yaml ${REPO_NAME}
docker image prune -af
if [[ "$status" != "completed" ]]; then
exit 1
fi
4 changes: 2 additions & 2 deletions backend/src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring:
data.redis.host: mem
data.redis.host: mapletool-mem-1
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://db/maple
url: jdbc:mysql://mapletool-db-1/maple
username: root
password: ENC(82LhaVLTV7bx76p7M18ES5ceqOWYR8ACDxHfoZEqfgXINYjTOJJBwG00dK6F5Mfx)

Expand Down
2 changes: 0 additions & 2 deletions server/test/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ export default function () {
"is status 200": (r) => r.status === 200,
// "response time is less than 1000ms": (r) => r.timings.duration < 1000,
});

console.log(res.status_text, res.body.length);
}

0 comments on commit ec1cd5a

Please sign in to comment.