diff --git a/.github/workflows/build_and_publish_docker_images.yaml b/.github/workflows/images.yaml similarity index 87% rename from .github/workflows/build_and_publish_docker_images.yaml rename to .github/workflows/images.yaml index 20983712..5f55d615 100644 --- a/.github/workflows/build_and_publish_docker_images.yaml +++ b/.github/workflows/images.yaml @@ -7,7 +7,11 @@ on: - main paths: - docker/** - - .github/workflows/build_and_publish_docker_images.yaml + - .github/workflows/images.yaml + pull_request: + paths: + - docker/** + - .github/workflows/images.yaml schedule: - cron: "0 0 * * *" @@ -29,7 +33,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: read + contents: write packages: write id-token: write @@ -40,9 +44,9 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GH_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker images id: meta