Skip to content

Commit

Permalink
rework secrets and continue debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaldrop107 committed Nov 16, 2023
1 parent 2845402 commit e9a6244
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/common_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ on:
TAG_TOKEN:
description: "Token used to bump the version tag"
required: true
CONTAINER_REPO_TOKEN:
description: "Token to access Github Image Registry"
required: true

jobs:
# Bump the version tag
Expand All @@ -58,7 +61,7 @@ jobs:
image: ghcr.io/nwchemex-project/nwx_buildenv:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
password: ${{ secrets.CONTAINER_REPO_TOKEN }}
steps:
- uses: actions/checkout@v4
# These next two steps will configure CMake if required
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/common_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ on:
secrets:
CMAIZE_GITHUB_TOKEN:
description: "Token passed to CMaize"
required: false
required: true
CONTAINER_REPO_TOKEN:
description: "Token to access Github Image Registry"
required: true

jobs:
# Apply licensing and formatting, then push changes.
Expand Down Expand Up @@ -98,7 +101,7 @@ jobs:
image: ghcr.io/nwchemex-project/nwx_buildenv:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
password: ${{ secrets.CONTAINER_REPO_TOKEN }}
strategy:
matrix:
compiler: ${{ fromJSON(inputs.compilers) }}
Expand Down Expand Up @@ -129,11 +132,11 @@ jobs:
# needs.license_and_format.outputs.made_changes == false &&
# inputs.doc_target != ''
runs-on: ubuntu-latest
# container:
# image: ghcr.io/nwchemex-project/nwx_buildenv:latest
# credentials:
# username: ${{ github.actor }}
# password: ${{ secrets.github_token }}
container:
image: ghcr.io/nwchemex-project/nwx_buildenv:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.CONTAINER_REPO_TOKEN }}
steps:
- run: |
echo ${{ needs.license_and_format.outputs.made_changes }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ jobs:
with:
doc_target: 'Sphinx'
generate_module_docs: false
secrets:
TAG_TOKEN: ${{ secrets.TAG_TOKEN }}
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ jobs:
source_dir: ''
compilers: ''
doc_target: 'Sphinx'
secrets:
CMAIZE_GITHUB_TOKEN: ${{ secrets.CMAIZE_GITHUB_TOKEN }}
secrets: inherit

0 comments on commit e9a6244

Please sign in to comment.