Skip to content

Commit fc1d78f

Browse files
committed
debug
1 parent a60d3da commit fc1d78f

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/build-and-push.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,22 @@ jobs:
159159
docker push "$IMAGE_NAME:v$NEW_VERSION"
160160
docker push "$IMAGE_NAME:latest"
161161
162-
##############################################################################
163-
# AFTER PUSH: MAKE THE PACKAGE PUBLIC
164-
##############################################################################
165-
- name: Make GHCR Package Public
166-
run: |
167-
# We do NOT use ${{ env.OWNER }} here.
168-
# Instead, we call GitHub's actual repository_owner as returned (possibly uppercase).
169-
REAL_OWNER="${{ github.repository_owner }}"
162+
##############################################################################
163+
# AFTER PUSH: MAKE THE PACKAGE PUBLIC
164+
##############################################################################
165+
# We do NOT use ${{ env.OWNER }} here.
166+
# Instead, we call GitHub's actual repository_owner as returned (possibly uppercase).
167+
REAL_OWNER="${{ github.repository_owner }}"
168+
169+
echo "Making the GHCR package '$dir' public under org: $REAL_OWNER"
170+
171+
curl -X PATCH "https://api.github.com/orgs/$REAL_OWNER/packages/container/$dir/visibility" \
172+
-H "Authorization: Bearer ${{ secrets.GHCR_TOKEN }}" \
173+
-H "Accept: application/vnd.github.v3+json" \
174+
-d '{"visibility":"public"}'
170175
171-
echo "Making the GHCR package '$dir' public under org: $REAL_OWNER"
176+
echo "=== Done with $dir (version $NEW_VERSION) ==="
177+
done
172178
173-
curl -X PATCH "https://api.github.com/orgs/$REAL_OWNER/packages/container/$dir/visibility" \
174-
-H "Authorization: Bearer ${{ secrets.GHCR_TOKEN }}" \
175-
-H "Accept: application/vnd.github.v3+json" \
176-
-d '{"visibility":"public"}'
179+
echo "=== All directories processed ==="
180+

0 commit comments

Comments
 (0)