diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e5ec70c..dac008e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -35,3 +35,11 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Set Docker image to private + run: | + curl -X PATCH \ + -H "Authorization: JWT ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{"is_private": true}' \ + "https://hub.docker.com/v2/repositories/inter92/fastapi-cloudrun/"