feat(cicd) fix some build problem

Signed-off-by: Ziming Zhang <zziming@vmware.com>
This commit is contained in:
Ziming Zhang 2020-02-20 20:25:58 +08:00
parent aa71fc43cf
commit 94230b5e19
5 changed files with 10 additions and 11 deletions

View File

@ -39,7 +39,6 @@ jobs:
docker_channel: stable
- uses: actions/checkout@v1
with:
fetch-depth: 2
path: src/github.com/goharbor/harbor
- name: setup env
run: |
@ -100,7 +99,6 @@ jobs:
docker_channel: stable
- uses: actions/checkout@v1
with:
fetch-depth: 2
path: src/github.com/goharbor/harbor
- name: setup env
run: |
@ -154,7 +152,6 @@ jobs:
docker_channel: stable
- uses: actions/checkout@v1
with:
fetch-depth: 2
path: src/github.com/goharbor/harbor
- name: setup env
run: |
@ -208,7 +205,6 @@ jobs:
docker_channel: stable
- uses: actions/checkout@v1
with:
fetch-depth: 2
path: src/github.com/goharbor/harbor
- name: setup env
run: |
@ -252,7 +248,6 @@ jobs:
node-version: '10.16.2'
- uses: actions/checkout@v1
with:
fetch-depth: 2
path: src/github.com/goharbor/harbor
- name: setup env
run: |

View File

@ -374,6 +374,12 @@ build_base_docker:
$(PUSHSCRIPTPATH)/$(PUSHSCRIPTNAME) goharbor/harbor-$$name-base:$(BASEIMAGETAG) $(REGISTRYUSER) $(REGISTRYPASSWORD) ; \
done
pull_base_docker:
@for name in chartserver clair clair-adapter core db jobservice log nginx notary-server notary-signer portal prepare redis registry registryctl; do \
echo $$name ; \
$(DOCKERPULL) goharbor/harbor-$$name-base:$(BASEIMAGETAG) ; \
done
install: compile build prepare start
package_online: update_prepare_version

View File

@ -1,6 +1,4 @@
FROM photon:2.0
RUN tdnf install -y python3 python3-pip httpd
RUN pip3 install pipenv==2018.11.26
RUN tdnf install -y python3 python3-pip httpd && tdnf clean all
RUN pip3 install setuptools && pip3 install pipenv==2018.11.26

View File

@ -1,3 +1,3 @@
FROM photon:2.0
RUN tdnf install -y redis sudo
RUN tdnf install -y redis sudo && tdnf clean all

View File

@ -17,4 +17,4 @@ docker ps
DIR="$(cd "$(dirname "$0")" && pwd)"
go test -race -i ./src/core ./src/jobservice
sudo -E env "PATH=$PATH" "POSTGRES_MIGRATION_SCRIPTS_PATH=$DIR/../../make/migrations/postgresql/" ./tests/coverage4gotest.sh
goveralls -coverprofile=profile.cov -service=github || true
#goveralls -coverprofile=profile.cov -service=github || true