Skip to content

Commit

Permalink
ghcr experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed Apr 8, 2024
1 parent c371eeb commit 98247b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
file: ./backend/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/backend:latest
platforms: linux/amd64,linux/arm64

- name: Build and Push Frontend Docker Image
uses: docker/build-push-action@v5
Expand All @@ -44,15 +43,14 @@ jobs:
file: ./frontend/Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/frontend:latest
platforms: linux/amd64,linux/arm64

- name: Set Backend Package Visibility to Public
run: |
curl \
-X PATCH \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/user/packages/container/${{ github.repository }}/backend/visibility" \
https://api.github.com/user/packages/container/ciso-assistant-community/backend/visibility \
-d '{"visibility":"public"}'
- name: Set Frontend Package Visibility to Public
Expand All @@ -61,5 +59,5 @@ jobs:
-X PATCH \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/user/packages/container/${{ github.repository }}/frontend/visibility" \
https://api.github.com/user/packages/container/ciso-assistant-community/frontend/visibility \
-d '{"visibility":"public"}'

0 comments on commit 98247b4

Please sign in to comment.