Skip to content

Commit

Permalink
Merge pull request #50 from iKonoTelecomunicaciones/48-fix-cicd
Browse files Browse the repository at this point in the history
ci(CI/CD): πŸ’š fix CI/CD
  • Loading branch information
egalvis39 committed Nov 15, 2023
2 parents 53e6aaa + f90ce74 commit dd9d47d
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit dd9d47d

Please sign in to comment.