diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3cde71c..d7f5a0e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,6 +27,9 @@ jobs: build: name: Build Docker Image runs-on: ubuntu-latest + permissions: + contents: read # Needed to checkout the repository + packages: write # Needed to push Docker images to GHCR steps: - name: Check out code uses: actions/checkout@v3 @@ -50,6 +53,13 @@ jobs: # Tag with 'latest' if on the main branch (though this workflow only runs on PRs to main) type=ref,event=branch,pattern=main,value=latest + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build Docker image uses: docker/build-push-action@v4 with: