1 Unstar Star 0 Fork 4

tbqswoole / hyperf-apiPHP

forked from liangguifeng / hyperf-api 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
hyperf的api实例,做了用户的登录认证,采用的是jwt做接口的认证,引入了blade模板引擎,供大家参考,后续会不断更新优化!!! spread retract

https://gitee.com/liangguifeng/hyperf-api

Clone or download
.gitlab-ci.yml 1.20 KB
Copy Edit Web IDE Raw Blame History
liangguifeng authored 2019-10-17 11:28 . update
# usermod -aG docker gitlab-runner
stages:
- build
- deploy
variables:
PROJECT_NAME: hyperf
REGISTRY_URL: registry-docker.org
build_test_docker:
stage: build
before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
script:
- docker build . -t $PROJECT_NAME
- docker tag $PROJECT_NAME $REGISTRY_URL/$PROJECT_NAME:test
- docker push $REGISTRY_URL/$PROJECT_NAME:test
only:
- test
tags:
- builder
deploy_test_docker:
stage: deploy
script:
- docker stack deploy -c deploy.test.yml --with-registry-auth $PROJECT_NAME
only:
- test
tags:
- test
build_docker:
stage: build
before_script:
# - git submodule sync --recursive
# - git submodule update --init --recursive
script:
- docker build . -t $PROJECT_NAME
- docker tag $PROJECT_NAME $REGISTRY_URL/$PROJECT_NAME:$CI_COMMIT_REF_NAME
- docker tag $PROJECT_NAME $REGISTRY_URL/$PROJECT_NAME:latest
- docker push $REGISTRY_URL/$PROJECT_NAME:$CI_COMMIT_REF_NAME
- docker push $REGISTRY_URL/$PROJECT_NAME:latest
only:
- tags
tags:
- builder
deploy_docker:
stage: deploy
script:
- echo SUCCESS
only:
- tags
tags:
- builder

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/tbqswoole/hyperf-api.git
git@gitee.com:tbqswoole/hyperf-api.git
tbqswoole
hyperf-api
hyperf-api
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542