Skip to content

Commit 7e2ad19

Browse files
committed
make the package public
1 parent 288bde6 commit 7e2ad19

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

.github/workflows/build-agentex.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,30 @@ jobs:
7676
cache-from: type=gha,scope=${{ env.AGENTEX_SERVER_IMAGE_NAME }}-release
7777
cache-to: type=gha,mode=max,scope=${{ env.AGENTEX_SERVER_IMAGE_NAME }}-release
7878

79-
# Build and push auth image to GHCR
80-
- name: Build and push AgentEx auth image to GHCR
81-
uses: docker/build-push-action@v5
82-
with:
83-
context: .
84-
file: ./agentex-auth/Dockerfile
85-
push: true
86-
tags: |
87-
ghcr.io/${{ github.repository }}/${{ env.AGENTEX_AUTH_IMAGE_NAME }}:${{ inputs.commit-sha }}
88-
ghcr.io/${{ github.repository }}/${{ env.AGENTEX_AUTH_IMAGE_NAME }}
89-
cache-from: type=gha,scope=${{ env.AGENTEX_AUTH_IMAGE_NAME }}-release
90-
cache-to: type=gha,mode=max,scope=${{ env.AGENTEX_AUTH_IMAGE_NAME }}-release
79+
# Make package public
80+
- name: Make package public
81+
env:
82+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
run: |
84+
echo "🔓 Making package public..."
85+
86+
# Extract package name from repository
87+
PACKAGE_NAME="${{ env.AGENTEX_SERVER_IMAGE_NAME }}"
88+
ORG_NAME="${{ github.repository_owner }}"
89+
90+
# Set package visibility to public
91+
gh api \
92+
--method PATCH \
93+
-H "Accept: application/vnd.github+json" \
94+
-H "X-GitHub-Api-Version: 2022-11-28" \
95+
"/orgs/$ORG_NAME/packages/container/$PACKAGE_NAME" \
96+
-f visibility='public' || echo "⚠️ Could not set package visibility (may already be public or insufficient permissions)"
97+
98+
echo "✅ Package visibility updated"
9199
92100
# Summary
93101
- name: Release Summary
94102
run: |
95103
echo "✅ Release complete!"
96104
echo "📦 Server image: ghcr.io/${{ github.repository }}/${{ env.AGENTEX_SERVER_IMAGE_NAME }}:${{ inputs.commit-sha }}"
97-
echo "🔐 Auth image: ghcr.io/${{ github.repository }}/${{ env.AGENTEX_AUTH_IMAGE_NAME }}:${{ inputs.commit-sha }}"
105+
echo "🔓 Package set to public visibility"

0 commit comments

Comments
 (0)