Skip to content

Commit e41e201

Browse files
committed
Do not push to official library by default
1 parent e0ea188 commit e41e201

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release_publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
workflow_uuid:
1212
description: 'Optional UUID to identify this workflow run'
1313
required: false
14+
pr_to_official_library:
15+
default: false
1416

1517
env:
1618
TARGET_OFFICIAL_IMAGES_REPO: docker-library/official-images
@@ -76,7 +78,7 @@ jobs:
7678
uses: actions/checkout@v4
7779
with:
7880
path: official-images
79-
repository: ${{ env.TARGET_OFFICIAL_IMAGES_REPO }}
81+
repository: ${{ github.event.inputs.pr_to_official_library && env.TARGET_OFFICIAL_IMAGES_REPO || env.FORKED_OFFICIAL_IMAGES_REPO }}
8082

8183
- name: Generate stackbrew library content
8284
env:
@@ -102,7 +104,7 @@ jobs:
102104
with:
103105
token: ${{ secrets.GH_TOKEN_FOR_PR }}
104106
draft: true
105-
push-to-fork: ${{ env.FORKED_OFFICIAL_IMAGES_REPO }}
107+
push-to-fork: ${{ github.event.inputs.pr_to_official_library && env.FORKED_OFFICIAL_IMAGES_REPO || '' }}
106108
path: official-images
107109
branch: redis-${{ steps.parse-release.outputs.release_version }}
108110
commit-message: "Redis: Update to ${{ steps.parse-release.outputs.release_version }}"
@@ -158,4 +160,4 @@ jobs:
158160
. ${GITHUB_WORKSPACE}/.github/actions/common/func.sh
159161
160162
slack_format_failure_message "Docker PR failed for Redis: ${{ steps.parse-release.outputs.release_version || 'unknown'}}" "$workflow_url" "$footer" \
161-
| curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
163+
| curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"

0 commit comments

Comments
 (0)