Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(CI/CD): 💚 fix CI/CD #50

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ jobs:
# Download updated docker image to testing server
run: |
echo "** Download updated docker image **"
ssh -tt $secrets.HOST_TESTING "docker pull $MENUFLOW_IMAGE"
ssh -tt $HOST_TESTING "docker pull $MENUFLOW_IMAGE"
echo "** Update menuflow image in registered domains **"
for domain in ${DOMAINS}; do
echo " >> Setting service variables"
stack_name=$(echo ${domain} | tr -d '.')
service=$(echo ${domain} | cut -d '.' -f1)
menuflow_service="${stack_name}_${service}-menuflow"
echo " >> Remove the service if exists"
ssh -tt $secrets.HOST_TESTING " \
ssh -tt $HOST_TESTING " \
if docker service ps ${menuflow_service}; then \
docker service rm ${menuflow_service}; \
else \
Expand All @@ -98,7 +98,7 @@ jobs:
"
echo " >> Deploy the service"
docker_compose_file="/mnt/shared/matrix/${domain}/docker-compose.yml"
ssh -tt $secrets.HOST_TESTING " \
ssh -tt $HOST_TESTING " \
docker-compose -f ${docker_compose_file} config | \
docker stack deploy -c - ${stack_name};
"
Expand Down