32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: Deploy on package push
|
|
|
|
on:
|
|
registry_package:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
if: contains(github.event.registry_package.name, 'marcopedone-web')
|
|
steps:
|
|
- name: Deploy command
|
|
run: |
|
|
curl -X 'POST' \
|
|
'https://dock.marcopedone.it/api/compose.deploy' \
|
|
-H 'accept: application/json' \
|
|
-H 'Content-Type: application/json' \
|
|
-H 'x-api-key: gbiVIPaEQtkPywiAOIxiBtLrjKVuIqcnXXNMTzMXZoyTgJtgyLpHrlfBEqIcyEUM' \
|
|
-d '{"composeId": "1Q1nPft6iaEDENfpYxq99"}'
|
|
deploy-infoalloggi:
|
|
runs-on: ubuntu-latest
|
|
if: contains(github.event.registry_package.name, 'infoalloggi-web')
|
|
steps:
|
|
- name: Deploy command
|
|
run: |
|
|
curl -X 'POST' \
|
|
'https://dock.marcopedone.it/api/compose.deploy' \
|
|
-H 'accept: application/json' \
|
|
-H 'Content-Type: application/json' \
|
|
-H 'x-api-key: iIKlaMNilGkzCIgGNmQbzxUfvrwAwFEXcDBVxzVbSLPghbqLiagXcvwJRfLZxxao' \
|
|
-d '{"composeId": "7apez8FViLShEjsFxlRNY"}'
|