Merge pull request #10480 from bitsf/fix_cicd_build

fix(cicd) Use fixed golang version 1.13.4 and fail early
This commit is contained in:
Wang Yan 2020-01-14 18:27:23 +08:00 committed by GitHub
commit 362c5211f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.13.4
id: go
- name: setup Docker
uses: docker-practice/actions-setup-docker@0.0.1
@ -84,7 +84,7 @@ jobs:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.13.4
id: go
- name: setup Docker
uses: docker-practice/actions-setup-docker@0.0.1
@ -138,7 +138,7 @@ jobs:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.13.4
id: go
- name: setup Docker
uses: docker-practice/actions-setup-docker@0.0.1
@ -192,7 +192,7 @@ jobs:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.13.4
id: go
- name: setup Docker
uses: docker-practice/actions-setup-docker@0.0.1

View File

@ -31,7 +31,7 @@ docker ps
# run db auth api cases
if [ "$1" = 'DB' ]; then
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 $DIR/../../tests/robot-cases/Group0-BAT/API_DB.robot
pybot -X -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 $DIR/../../tests/robot-cases/Group0-BAT/API_DB.robot
elif [ "$1" = 'LDAP' ]; then
# run ldap api cases
python $DIR/../../tests/configharbor.py -H $IP -u $HARBOR_ADMIN -p $HARBOR_ADMIN_PASSWD -c auth_mode=ldap_auth \
@ -40,7 +40,7 @@ elif [ "$1" = 'LDAP' ]; then
ldap_search_password=admin \
ldap_base_dn=dc=example,dc=com \
ldap_uid=cn
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 $DIR/../../tests/robot-cases/Group0-BAT/API_LDAP.robot
pybot -X -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 $DIR/../../tests/robot-cases/Group0-BAT/API_LDAP.robot
else
rc=999
fi