Skip to content

Commit

Permalink
Use branches syntax and jobs needs
Browse files Browse the repository at this point in the history
  • Loading branch information
larslemos committed Aug 27, 2023
1 parent 14f0c81 commit f456947
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ohri-namibia-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
run: echo "::set-output name=image::${{ steps.build-and-push.output.digest }}"

namibia_dev_server_status:
if: github.ref == 'refs/heads/dev-deploy'
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -203,12 +203,12 @@ jobs:
-o "StrictHostKeyChecking=no" \
-o "ProxyCommand=ssh -o StrictHostKeyChecking=no -W %h:%p ssh llemos@reports.globalhealthapp.net -p 3220" \
cd /opt && \
docker compose -f docker-compose-ohri-dev.yml pull && \
docker compose -f docker-compose-ohri-dev.yml stop && \
docker compose -f docker-compose-ohri-dev.yml up -d"
docker compose -f docker-compose-ohri-namibia-dev.yml pull && \
docker compose -f docker-compose-ohri-namibia-dev.yml stop && \
docker compose -f docker-compose-ohri-namibia-dev.yml up -d"
namibia_working_server_status:
if: github.ref == 'refs/heads/working-deploy'
if: github.ref == 'refs/heads/working'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -267,6 +267,6 @@ jobs:
-o "StrictHostKeyChecking=no" \
-o "ProxyCommand=ssh -o StrictHostKeyChecking=no -W %h:%p llemos@reports.globalhealthapp.net -p 3221 \
cd /opt && \
docker compose -f docker-compose-ohri-working.yml pull && \
docker compose -f docker-compose-ohri-working.yml stop && \
docker compose -f docker-compose-ohri-working.yml up -d"
docker compose -f docker-compose-ohri-namibia-working.yml pull && \
docker compose -f docker-compose-ohri-namibia-working.yml stop && \
docker compose -f docker-compose-ohri-namibia-working.yml up -d"

0 comments on commit f456947

Please sign in to comment.