Skip to content

Commit

Permalink
Merge pull request #5175 from filecoin-project/ci/miss_secrets
Browse files Browse the repository at this point in the history
ci: fix missing secrets
  • Loading branch information
zl03jsj authored Aug 9, 2022
2 parents 51387c7 + b201b8c commit 4d85109
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/build_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,13 @@ jobs:
with:
bin_name: 'venus'
has_ffi: true
secrets:
OSS_KEY_ID: ${{secrets.OSS_KEY_ID}}
OSS_KEY_SECRET: ${{secrets.OSS_KEY_SECRET}}
OSS_ENDPOINT: ${{secrets.OSS_ENDPOINT}}
OSS_BUCKET: ${{secrets.OSS_BUCKET}}
FTP_HOST: ${{secrets.FTP_HOST}}
FTP_USER: ${{secrets.FTP_USER}}
FTP_PWD: ${{secrets.FTP_PWD}}
GODEYE_URL: ${{secrets.GODEYE_URL}}
token: ${{github.token}}
17 changes: 16 additions & 1 deletion .github/workflows/common_build_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ on:
type: string
has_ffi:
type: boolean
secrets:
OSS_KEY_ID:
OSS_KEY_SECRET:
OSS_ENDPOINT:
OSS_BUCKET:
FTP_HOST:
required: true
FTP_USER:
required: true
FTP_PWD:
required: true
GODEYE_URL:
required: true
token:
required: true

jobs:

Expand Down Expand Up @@ -145,7 +160,7 @@ jobs:
artifacts: ${{steps.vars.outputs.artifact_name}}
tag: ${{ steps.vars.outputs.github_tag }}
commit: ${{ steps.vars.outputs.commit }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.token }}

- name: upload ftp
id: uploadftp
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/common_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Reuse Docker Image CI
on:

workflow_call:
secrets:
DOCKER_PASSWORD:
required: true

jobs:

Expand Down Expand Up @@ -37,6 +40,7 @@ jobs:
echo github_tag = ${{ steps.vars.outputs.github_tag }}
echo repo_name = ${{ steps.vars.outputs.repo_name }}
echo docker_user_name = ${{steps.vars.outputs.docker_user_name}}
echo docker_password = ${{secrets.DOCKER_PASSWORD}}
- name: Build the Docker image
if: ${{ steps.vars.outputs.is_tag_create == 'true' }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ jobs:

build_docker_image:
uses: ./.github/workflows/common_docker_image.yml
secrets:
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}

0 comments on commit 4d85109

Please sign in to comment.