diff --git a/.env b/.env index 72be370..3c7cd87 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -GOOGLE_API_KEY=your_google_api_key_here \ No newline at end of file +GOOGLE_API_KEY=AIzaSyDMNUIrcNSVKHAxKKoqpKL6fzPycy2suKU \ No newline at end of file diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 2d35b7d..b6ba187 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -28,9 +28,16 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Compute lowercase owner + id: owner_lower + run: | + # GitHub repository_owner can contain uppercase letters; container registries require lowercase + owner=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]') + echo "owner=$owner" >> "$GITHUB_OUTPUT" + - name: Build and push image uses: docker/build-push-action@v4 with: push: true - tags: ghcr.io/${{ github.repository_owner }}/mindguard:latest + tags: ghcr.io/${{ steps.owner_lower.outputs.owner }}/mindguard:latest file: ./Dockerfile diff --git a/README.md b/README.md index e6f88fa..4161953 100644 --- a/README.md +++ b/README.md @@ -112,5 +112,5 @@ Notes: Publish image automatically (GitHub) - I added a GitHub Actions workflow `.github/workflows/docker-publish.yml`. On push to `main` it builds the image and pushes it to GitHub Container Registry (GHCR) as `ghcr.io//mindguard:latest`. -- After pushing, you can deploy that container image to any hosting provider that accepts Docker images (Render, Fly.io, Railway, DigitalOcean App Platform, etc.). +