Skip to content

Commit

Permalink
Grant package write permissions for be-next workflow
Browse files Browse the repository at this point in the history
This attempts to fix an error in the build_deploy_scicat_backend_next
job

```
#24 ERROR: denied: installation not allowed to Write organization package
------
 > pushing ghcr.io/paulscherrerinstitute/scicat-ci/backend-next:sha-5f02b94cc8ee191467e760d98a50f3be8157be56 with docker:
------
ERROR: denied: installation not allowed to Write organization package
```
  • Loading branch information
sbliven committed Jun 28, 2024
1 parent 5f02b94 commit 7eec09e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/scicat-be-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- check_changed
- set_env
uses: ./.github/workflows/reusable.build-deploy.yml
permissions:
contents: read
packages: write
with:
context: scicat-backend-next/.
image_name: ${{ github.repository }}/backend-next
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/scicat-fe.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: scicat-fe

on:
workflow_dispatch:
on:
workflow_dispatch:
inputs:
submodule_commit:
description: 'Commit of the submodule to deploy'
description: 'Commit of the submodule to deploy'
required: false
commit:
description: 'Commit of the CI repo to deploy'
commit:
description: 'Commit of the CI repo to deploy'
required: false
pull_request:
branches: [ main ]
Expand All @@ -18,17 +18,17 @@ on:

jobs:

set_env:
set_env:
uses: ./.github/workflows/reusable.environment.yml
with:
with:
commit: ${{ github.event.inputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}

check_changed:
needs: set_env
uses: ./.github/workflows/reusable.changes.yml
with:
files: |
with:
files: |
.github/workflows/scicat-fe.yml
helm/configs/frontend/values.yaml
helm/configs/frontend/login.component.html
Expand All @@ -40,11 +40,14 @@ jobs:

build_deploy_scicat_fe:
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'fe'
needs:
needs:
- check_changed
- set_env
uses: ./.github/workflows/reusable.build-deploy.yml
with:
permissions:
contents: read
packages: write
with:
context: frontend/.
image_name: ${{ github.repository }}/fe
release_name: frontend
Expand Down

0 comments on commit 7eec09e

Please sign in to comment.