mirror of
https://github.com/goharbor/harbor
synced 2025-05-21 14:13:40 +00:00
Fix setup gcloud error (#17847)
ubuntu-latest was upgraded from ubuntu-20.04 to ubuntu-22.04, the python version of ubuntu-22.04 is 3.10, but gcloud does not support python 3.10, so ubuntu is fixed to version 20.04 Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
parent
f8628258bc
commit
68d498f98d
20
.github/workflows/build-package.yml
vendored
20
.github/workflows/build-package.yml
vendored
@ -3,34 +3,32 @@ env:
|
||||
DOCKER_COMPOSE_VERSION: 1.23.0
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- release-*
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- release-*
|
||||
|
||||
jobs:
|
||||
BUILD_PACKAGE:
|
||||
env:
|
||||
BUILD_PACKAGE: true
|
||||
runs-on:
|
||||
#- self-hosted
|
||||
- ubuntu-latest
|
||||
- ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: 'google-github-actions/auth@v0'
|
||||
with:
|
||||
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
|
||||
- uses: google-github-actions/setup-gcloud@v0
|
||||
with:
|
||||
version: '285.0.0'
|
||||
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
||||
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
export_default_credentials: true
|
||||
- run: gcloud info
|
||||
- name: Set up Go 1.19
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.19.3
|
||||
id: go
|
||||
- name: setup Docker
|
||||
- name: Setup Docker
|
||||
uses: docker-practice/actions-setup-docker@1.0.11
|
||||
with:
|
||||
docker_version: 18.09
|
||||
|
2
.github/workflows/publish_release.yml
vendored
2
.github/workflows/publish_release.yml
vendored
@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup env
|
||||
|
Loading…
x
Reference in New Issue
Block a user