Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigri44 authored Jan 29, 2024
1 parent 96f3052 commit ed63074
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/preprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,10 @@ jobs:
SSH_PORT: ${{ secrets.SSH_PORT }}

- name: pull & up!
run: ssh staging 'cd /home/realt/docker/RealT-Stats-Preprod && git pull && docker compose --file docker-compose-preprod.yml pull && docker compose --file docker-compose-preprod.yml up -d'
run: |
ssh staging 'export DOCKER_BRANCH=${{ github.ref_name }}
cd /home/realt/docker/stats/${DOCKER_BRANCH}
git pull origin ${{ github.ref_name }}
docker compose --file docker-compose.${{ github.ref_name }}.yml pull
docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${{ secrets.DOCKER_REGISTRY }}
docker compose --project-name ${{ github.ref_name }}-stats --file docker-compose.${{ github.ref_name }}.yml up -d'

0 comments on commit ed63074

Please sign in to comment.