ADDED: config #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
# Trigger event on every push / delete event, no matter the branch | |
# on: [push, delete] | |
# Trigger event on every push / delete event, only in master branch | |
on: | |
push: | |
branches: | |
- "master" | |
delete: | |
branches: | |
- "master" | |
jobs: | |
deploy: | |
runs-on: [self-hosted] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Stop Chemotion containers | |
run: docker compose stop | |
- name: Force pulling of the images | |
run: docker compose pull | |
- name: restart chemotion container with new image, which will be automatically pulled | |
run: docker compose up -d |