This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): fix workflow config for deploy (#136)
* ci(github): fix workflow config * ci(github): update deploy job * ci(github): fix PR label check
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 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 |
---|---|---|
|
@@ -54,7 +54,7 @@ jobs: | |
docker push $IMAGE_ID:latest | ||
deploy-dev: | ||
needs: dockerhub | ||
needs: docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/[email protected] | ||
|
@@ -65,7 +65,7 @@ jobs: | |
script: | | ||
docker pull quackai/contribution-api:latest | ||
docker rmi -f $(docker images -f "dangling=true" -q) | ||
cd devops && docker compose stop backend && docker compose up -d && docker compose exec backend alembic upgrade head | ||
cd devops && docker compose stop backend && docker compose up -d --wait && docker compose exec backend alembic upgrade head | ||
docker inspect -f '{{ .Created }}' $(docker compose images -q backend) | ||
- name: Ping server | ||
env: | ||
|