Skip to content

Commit

Permalink
ci: inheriting secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
demartis committed May 10, 2023
1 parent cc452af commit 2fea493
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
Description:
needs: [ Prepare ]
uses: ./.github/workflows/sub_description.yaml
secrets: inherit

R2020a:
needs: [ Prepare ]
uses: ./.github/workflows/sub_release.yaml
secrets: inherit
with:
DOCKERHUB_TAG: R2020a
DOCKER_CONTEXT: R2020a
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sub_description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ name: Description

on:
workflow_call:
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true

jobs:

build:
push:
runs-on: ubuntu-latest
continue-on-error: true
steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sub_prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ name: Prepare

on:
workflow_call:
# secrets:
# DOCKERHUB_USERNAME:
# required: true
# DOCKERHUB_TOKEN:
# required: true
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true

jobs:
build:
Expand Down

0 comments on commit 2fea493

Please sign in to comment.