diff --git a/.github/workflows/ci-docker.yaml b/.github/workflows/ci-docker.yaml index 70f9c4e..82013f4 100644 --- a/.github/workflows/ci-docker.yaml +++ b/.github/workflows/ci-docker.yaml @@ -1,12 +1,9 @@ name: Docker Build from Image CI on: - pull_request: - branches: - - main push: branches: + - "main" - "ci-rework" - jobs: build: permissions: @@ -22,7 +19,13 @@ jobs: uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Build + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and Push uses: docker/build-push-action@v3 with: context: .github/docker