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
|
||||
type: string
|
||||
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
|
||||
@@ -54,17 +46,8 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user