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:
|
compose_repository:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ${{ github.repository }}
|
default: 'olms/deploy'
|
||||||
compose_ref:
|
compose_ref:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
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:
|
stack_file_name:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
@@ -38,16 +46,26 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
steps:
|
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:
|
with:
|
||||||
repository: ${{ inputs.compose_repository }}
|
repository: ${{ inputs.compose_repository }}
|
||||||
ref: ${{ inputs.compose_ref }}
|
ref: ${{ inputs.compose_ref }}
|
||||||
token: ${{ secrets.REPOS_ACCESS_TOKEN }}
|
token: ${{ secrets.REPOS_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: check info
|
|
||||||
run: |
|
|
||||||
echo "github.event_name: ${{ github.event_name }}"
|
|
||||||
|
|
||||||
- name: Change Version if pr
|
- name: Change Version if pr
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user