refactor: update deployment conditions in GitHub Actions workflow
This commit is contained in:
parent
fc104d4044
commit
f8c00f01ab
1 changed files with 4 additions and 3 deletions
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
|
|
@ -2,12 +2,13 @@ name: Deploy on package push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
registry_package:
|
registry_package:
|
||||||
types: ["published", "updated"]
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.registry_package.name == 'marcopedone-web'
|
if: contains(github.event.registry_package.name, 'marcopedone-web')
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy command
|
- name: Deploy command
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -19,7 +20,7 @@ jobs:
|
||||||
-d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}'
|
-d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}'
|
||||||
deploy-infoalloggi:
|
deploy-infoalloggi:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.registry_package.name == 'infoalloggi-web'
|
if: contains(github.event.registry_package.name, 'infoalloggi-web')
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy command
|
- name: Deploy command
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue