Skip to content

Commit e3e9fbd

Browse files
committed
fix: allow GHCR image push
SE-6524 Signed-off-by: Gabor Boros <gabor@opencraft.com>
1 parent a105086 commit e3e9fbd

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/workflows/build-all.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ on:
3333
SSH_PRIVATE_KEY:
3434
description: "Private SSH key for accessing private repositories"
3535
required: true
36+
GITHUB_TOKEN:
37+
description: "GitHub token for authenticating to registries and APIs"
38+
required: true
3639

3740
jobs:
3841
build-openedx:
@@ -46,6 +49,7 @@ jobs:
4649
cancel-in-progress: false
4750
secrets:
4851
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4953
with:
5054
INSTANCE_NAME: ${{ inputs.INSTANCE_NAME }}
5155
SERVICE: openedx
@@ -65,6 +69,7 @@ jobs:
6569
cancel-in-progress: false
6670
secrets:
6771
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6873
with:
6974
INSTANCE_NAME: ${{ inputs.INSTANCE_NAME }}
7075
SERVICE: mfe

.github/workflows/build-service.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
SSH_PRIVATE_KEY:
4040
description: "Private SSH key for accessing private repositories"
4141
required: true
42+
GITHUB_TOKEN:
43+
description: "GitHub token for authenticating to registries and APIs"
44+
required: true
4245

4346
jobs:
4447
build:
@@ -49,6 +52,7 @@ jobs:
4952
contents: read
5053
secrets:
5154
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5256
with:
5357
STRAIN_REPOSITORY: ${{ inputs.STRAIN_REPOSITORY }}
5458
STRAIN_REPOSITORY_BRANCH: ${{ inputs.STRAIN_REPOSITORY_BRANCH }}

cluster-template/phd-{{cookiecutter.cluster_slug_normalized}}-cluster/.github/workflows/build-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
contents: write
3535
secrets:
3636
SSH_PRIVATE_KEY: {% raw %}${{ secrets.SSH_PRIVATE_KEY }}{% endraw %}
37+
GITHUB_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
3738
with:
3839
INSTANCE_NAME: {% raw %}${{ inputs.INSTANCE_NAME }}{% endraw %}
3940
STRAIN_REPOSITORY: {% raw %}${{ github.repository }}{% endraw %}

cluster-template/phd-{{cookiecutter.cluster_slug_normalized}}-cluster/.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
contents: write
4242
secrets:
4343
SSH_PRIVATE_KEY: {% raw %}${{ secrets.SSH_PRIVATE_KEY }}{% endraw %}
44+
GITHUB_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
4445
with:
4546
INSTANCE_NAME: {% raw %}${{ inputs.INSTANCE_NAME }}{% endraw %}
4647
SERVICE: {% raw %}${{ inputs.SERVICE }}{% endraw %}

0 commit comments

Comments
 (0)