Skip to content

Commit

Permalink
Merge pull request #17 from mlibrary/github-token
Browse files Browse the repository at this point in the history
adding github_token secret
  • Loading branch information
niquerio authored Jan 25, 2024
2 parents 3133f24 + 4257497 commit e81abc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ on:
type: string
secrets:
GH_PACKAGE_READ_TOKEN:
required: true
required: false
default: ""

jobs:
build_production:
Expand Down Expand Up @@ -68,6 +69,7 @@ jobs:
file: ${{ inputs.dockerfile }}
secrets: |
"gh_package_read_token=${{ secrets.GH_PACKAGE_READ_TOKEN }}"
"github_token=${{ secrets.GITHUB_TOKEN }}"
push: true
tags: |
ghcr.io/mlibrary/${{ inputs.image_name }}:latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ on:
type: string
secrets:
GH_PACKAGE_READ_TOKEN:
required: true
required: false
default: ""
outputs:
sha:
description: "github commit hash that corressponds to the tag"
Expand Down Expand Up @@ -89,6 +90,7 @@ jobs:
file: ${{ inputs.dockerfile }}
secrets: |
"gh_package_read_token=${{ secrets.GH_PACKAGE_READ_TOKEN }}"
"github_token=${{ secrets.GITHUB_TOKEN }}"
push: true
tags: |
ghcr.io/mlibrary/${{ inputs.image_name }}-unstable:latest
Expand Down

0 comments on commit e81abc3

Please sign in to comment.