diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e397294..c2d5a07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: branches: [main] push: - branches: [main, dev, 'agent/**'] + branches: [main, dev, 'agent/**', 'nightly/**'] workflow_dispatch: permissions: diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 585812c..edf661d 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -2,7 +2,7 @@ name: Docker Build and Publish on: push: - branches: [main, dev] + branches: [main, dev, 'nightly/**'] tags: ['v*.*.*'] pull_request: branches: [main, dev] @@ -34,7 +34,7 @@ jobs: - uses: docker/setup-buildx-action@v3 - name: Log in to Container Registry - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/heads/nightly/') uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} @@ -62,7 +62,7 @@ jobs: with: context: . platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/heads/nightly/') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha