diff --git a/.github/workflows/devcontainer.yml b/.github/workflows/devcontainer.yml index 77f8fb19f8..1a2957e7f4 100644 --- a/.github/workflows/devcontainer.yml +++ b/.github/workflows/devcontainer.yml @@ -1,10 +1,19 @@ name: Devcontainer on: - push: - branches: - - main - workflow_dispatch: + inputs: + branch: + description: "The branch to build the devcontainer from" + default: "main" + required: true + type: string + workflow_call: + inputs: + branch: + description: "The branch to build the devcontainer from" + default: "main" + required: true + type: string jobs: devcontainer: @@ -18,11 +27,13 @@ jobs: env: LAB_DEVCONTAINER_IMAGE: perconalab/pmm-server:dev-container - GH_DEVCONTAINER_IMAGE: ghcr.io/percona/pmm-server:dev-container + GH_DEVCONTAINER_IMAGE: ghcr.io/percona/pmm:dev-container steps: - name: Check out code uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.branch }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2