Skip to content

temp

temp #142

Workflow file for this run

name: Docker Compose
on:
push:
branches: ['develop', 'master', 'testcompose']
#branches: ['compose']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get branch names.
id: branch-names
uses: tj-actions/branch-names@v8
- uses: alinz/ssh-scp-action@master
with:
key: ${{ secrets.TEST_SERVER_KEY }}
host: ${{ secrets.TEST_SERVER_IP }}
user: ${{ secrets.TEST_SERVER_USER }}
ssh_before: |
rm -f test_compose.sh
scp: |
.github/workflows/test_compose.sh ${{ secrets.TEST_SERVER_USER }}@${{ secrets.TEST_SERVER_IP }}:~/test_compose.sh
ssh_after: |
sh test_compose.sh ${{ steps.branch-names.outputs.current_branch }}