mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
166eb2e4e1
Bumps [google-github-actions/setup-gcloud](https://github.com/google-github-actions/setup-gcloud) from 0 to 1. - [Release notes](https://github.com/google-github-actions/setup-gcloud/releases) - [Changelog](https://github.com/google-github-actions/setup-gcloud/blob/main/CHANGELOG.md) - [Commits](https://github.com/google-github-actions/setup-gcloud/compare/v0...v1) --- updated-dependencies: - dependency-name: google-github-actions/setup-gcloud dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Orlix <7236111+OrlinVasilev@users.noreply.github.com>
71 lines
2.2 KiB
YAML
71 lines
2.2 KiB
YAML
name: CONFORMANCE_TEST
|
|
env:
|
|
DOCKER_COMPOSE_VERSION: 1.23.0
|
|
|
|
on:
|
|
repository_dispatch:
|
|
types:
|
|
- manual-trigger-conformance
|
|
schedule:
|
|
- cron: '0 6 * * *'
|
|
|
|
jobs:
|
|
CONFORMANCE_TEST:
|
|
env:
|
|
CONFORMANCE_TEST: true
|
|
runs-on:
|
|
#- self-hosted
|
|
- ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- id: 'auth'
|
|
name: 'Authenticate to Google Cloud'
|
|
uses: google-github-actions/auth@v1
|
|
with:
|
|
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
|
|
- uses: google-github-actions/setup-gcloud@v1
|
|
- run: gcloud info
|
|
- name: Set up Go 1.20
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.20.4
|
|
id: go
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
path: src/github.com/goharbor/harbor
|
|
- name: before_install
|
|
run: |
|
|
set -x
|
|
cd src/github.com/goharbor/harbor
|
|
pwd
|
|
env
|
|
df -h
|
|
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
|
chmod +x docker-compose
|
|
sudo mv docker-compose /usr/local/bin
|
|
IP=`hostname -I | awk '{print $1}'`
|
|
echo '{"insecure-registries" : ["'$IP':5000"]}' | sudo tee /etc/docker/daemon.json
|
|
echo "IP=$IP" >> $GITHUB_ENV
|
|
sudo cp ./tests/harbor_ca.crt /usr/local/share/ca-certificates/
|
|
sudo update-ca-certificates
|
|
sudo service docker restart
|
|
- name: install
|
|
run: |
|
|
cd src/github.com/goharbor/harbor
|
|
env
|
|
df -h
|
|
bash ./tests/showtime.sh ./tests/ci/api_common_install.sh $IP DB
|
|
- name: script
|
|
run: |
|
|
echo IP: $IP
|
|
df -h
|
|
cd src/github.com/goharbor/harbor
|
|
bash ./tests/showtime.sh ./tests/ci/conformance_test.sh $IP
|
|
df -h
|
|
- name: upload test result to gs
|
|
run: |
|
|
cd src/github.com/goharbor/harbor
|
|
gsutil cp ./distribution-spec/conformance/report.html gs://harbor-conformance-test/report.html
|
|
gsutil acl ch -u AllUsers:R gs://harbor-conformance-test/report.html
|
|
if: always()
|