Skip to content

Commit

Permalink
PMM-7 make the workflow run on call and dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk committed Jul 21, 2023
1 parent 1ffdf2f commit 7f7df97
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 7f7df97

Please sign in to comment.