diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7c776732..f16e5b1e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,6 +12,16 @@ on: - main schedule: - cron: "12 3 * * *" + workflow_dispatch: + inputs: + ferretdb_image: + description: FerretDB Docker image + default: ghcr.io/ferretdb/ferretdb-dev:main + required: false + postgres_image: + description: PostgreSQL Docker image + default: postgres:16.4 + required: false env: GOPATH: /home/runner/go @@ -48,6 +58,12 @@ jobs: run: go generate -x working-directory: tools + - name: Start environment + run: bin/task env-up-detach + env: + FERRETDB_IMAGE: ${{ inputs.ferretdb_image || 'ghcr.io/ferretdb/ferretdb-dev:main' }} + POSTGRES_IMAGE: ${{ inputs.postgres_image || 'postgres:16.4' }} + - name: Run init run: bin/task init