File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,8 +106,10 @@ jobs:
106106 cp ~/.env-production dashboard-production/.env &&
107107 cd dashboard-production &&
108108 git checkout ${GITHUB_SHA} &&
109- docker compose -f docker-compose-next.yml pull &&
110- docker compose -f docker-compose-next.yml up -d
109+ docker compose up --pull=always --remove-orphans --detach &&
110+ docker image prune -fa --filter "until=48h" &&
111+ docker volume ls --filter dangling=true --format "::warning::volume {{.Name}} is dangling" &&
112+ docker container ls -f status=exited --format "::warning::container {{.ID}} {{.Status}} ({{.Names}})"
111113 "
112114 env :
113115 SSH_USER : ${{ secrets.STAGING_USER }}
Original file line number Diff line number Diff line change 6767 cp ~/.env-staging dashboard-staging/.env &&
6868 cd dashboard-staging &&
6969 git checkout ${GITHUB_SHA} &&
70- docker compose down &&
71- docker compose build --no-cache &&
72- docker compose up -d
70+ docker compose up --build --pull=always --remove-orphans --detach &&
71+ docker image prune -fa --filter "until=48h" &&
72+ docker volume ls --filter dangling=true --format "::warning::volume {{.Name}} is dangling" &&
73+ docker container ls -f status=exited --format "::warning::container {{.ID}} {{.Status}} ({{.Names}})"
7374 "
7475 env :
7576 SSH_USER : ${{ secrets.STAGING_USER }}
Original file line number Diff line number Diff line change 2424 git fetch
2525 git checkout ${{ github.event.inputs.GIT_BRANCH }}
2626 cd ..
27- docker compose -f docker-compose-all.yaml --profile=self-hosted build
28- docker compose -f docker-compose-all.yaml --profile=self-hosted up -d --remove-orphans
27+ docker compose -f docker-compose-all.yaml --profile=self-hosted up --build --pull=always --remove-orphans --detach
28+ docker image prune -fa --filter "until=48h"
29+ docker volume ls --filter dangling=true --format "::warning::volume {{.Name}} is dangling"
30+ docker container ls -f status=exited --format "::warning::container {{.ID}} {{.Status}} ({{.Names}})"
You can’t perform that action at this time.
0 commit comments