Deploy to acd-daq05 server #3
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 to acd-daq05 server | |
on: | |
#push: | |
# branches: | |
# - main # Changes in this branch triggers the deployment | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: | |
- self-hosted | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Build and Push Docker Images | |
run: | | |
export LOCAL_IP=$(bash -c 'hostname -I | cut -d" " -f3') | |
podman-compose down | |
podman-compose up --build -d |