-
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.
- Loading branch information
Yifan Zhang
committed
Jun 24, 2021
1 parent
c7d02bd
commit db8c69f
Showing
14 changed files
with
611 additions
and
285 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ env | |
.python-version | ||
.env | ||
dist | ||
**.apihub | ||
test.sh |
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,31 @@ | ||
variables: | ||
GET_SOURCES_ATTEMPTS: 3 | ||
|
||
stages: | ||
- test | ||
- build | ||
- deploy | ||
|
||
test: | ||
image: docker | ||
stage: test | ||
variables: | ||
NAME: $CI_PROJECT_NAME | ||
script: | ||
- docker build -t $NAME -f Dockerfile.webapi . | ||
- docker run --name $NAME -w /code $NAME pytest | ||
after_script: | ||
- docker stop $NAME | ||
- docker rm $NAME | ||
- docker rmi $NAME:latest | ||
|
||
build: | ||
stage: build | ||
variables: | ||
NAME: $CI_PROJECT_NAME | ||
TAG: $CI_COMMIT_REF_NAME | ||
script: | ||
- docker login $ACR_REGISTERY -u $ACR_USERNAME -p $ACR_PASSWORD | ||
- docker build -t $NAME:$TAG -f Dockerfile . | ||
only: | ||
- tags |
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
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
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
Oops, something went wrong.