add dev repo
This commit is contained in:
32
.github/workflows/deploy_compose.yml
vendored
32
.github/workflows/deploy_compose.yml
vendored
@@ -8,11 +8,19 @@ on:
|
||||
compose_repository:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ github.repository }}
|
||||
default: 'olms/deploy'
|
||||
compose_ref:
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ github.ref }}
|
||||
default: 'refs/heads/main'
|
||||
dev_compose_repository:
|
||||
required: false
|
||||
type: string
|
||||
default: 'olms/deploy_dev'
|
||||
dev_compose_ref:
|
||||
required: false
|
||||
type: string
|
||||
default: 'refs/heads/main'
|
||||
stack_file_name:
|
||||
required: false
|
||||
type: string
|
||||
@@ -38,16 +46,26 @@ jobs:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: check info
|
||||
run: |
|
||||
echo "github.event_name: ${{ github.event_name }}"
|
||||
|
||||
- name: Check out Dev Compose Repo on pr
|
||||
uses: actions/checkout@v3
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
with:
|
||||
repository: ${{ inputs.dev_compose_repository }}
|
||||
ref: ${{ inputs.dev_compose_ref }}
|
||||
token: ${{ secrets.REPOS_ACCESS_TOKEN }}
|
||||
|
||||
- name: Check out Deploy Compose Repo on other event
|
||||
uses: actions/checkout@v3
|
||||
if: ${{ ! ( github.event_name == 'pull_request' ) }}
|
||||
with:
|
||||
repository: ${{ inputs.compose_repository }}
|
||||
ref: ${{ inputs.compose_ref }}
|
||||
token: ${{ secrets.REPOS_ACCESS_TOKEN }}
|
||||
|
||||
- name: check info
|
||||
run: |
|
||||
echo "github.event_name: ${{ github.event_name }}"
|
||||
|
||||
- name: Change Version if pr
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user