diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 465fbac..cb15950 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main ] pull_request: - branches: [ main ] + workflow_call: + env: GO_VERSION: '1.25' diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8108095..f308b86 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,8 +4,6 @@ on: push: branches: [ main ] tags: [ 'v*' ] - pull_request: - branches: [ main ] env: REGISTRY: ghcr.io @@ -18,7 +16,7 @@ jobs: build-and-push: needs: ci runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' && github.event_name == 'push' permissions: contents: read packages: write