both pr and tag compose file from deploy repo
This commit is contained in:
19
.github/workflows/deploy_compose.yml
vendored
19
.github/workflows/deploy_compose.yml
vendored
@@ -13,14 +13,6 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: 'refs/heads/main'
|
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
|
||||||
@@ -54,17 +46,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "github.event_name: ${{ github.event_name }}"
|
echo "github.event_name: ${{ github.event_name }}"
|
||||||
|
|
||||||
- name: Check out Dev Compose Repo on pr
|
- name: Check out Deploy Compose Repo
|
||||||
uses: actions/checkout@v3
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user