Skip to content

Commit 1b87439

Browse files
committed
🚑
1 parent 965ea20 commit 1b87439

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎.github/workflows/build_server.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,21 @@ jobs:
112112
- name: Copy compose files
113113
run: |
114114
scp docker-compose.*.yml streameth@145.223.118.217:/home/streameth/streameth/
115+
115116
# Log in to registry on deployment server
116117
- name: Log in to registry on deployment server
117118
run: |
118119
echo "${{ secrets.TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
120+
121+
# Deploy or update stack
122+
- name: Deploy/Update Stack
123+
run: |
124+
STACK_NAME="${{ needs.prepare-env.outputs.stack_name }}"
125+
COMPOSE_FILE="${{ needs.prepare-env.outputs.compose_file }}"
126+
127+
# Deploy or update the stack
128+
docker stack deploy -c /home/streameth/streameth/${COMPOSE_FILE} ${STACK_NAME} --with-registry-auth
129+
119130
# Update services based on environment
120131
- name: Update services
121132
run: |

0 commit comments

Comments
 (0)