diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cb4c2e..5c11a85 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,6 @@ name: Tests on: + workflow_dispatch: pull_request: push: branches: @@ -40,7 +41,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - deployments: write + packages: write statuses: write steps: - uses: actions/checkout@v5 @@ -58,8 +59,9 @@ jobs: - uses: docker/login-action@v3 if: github.event_name != 'pull_request' with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - uses: docker/build-push-action@v6 with: context: .