ci cd uchun test commit
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 4m28s
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 4m28s
This commit is contained in:
7
.github/workflows/deploy.yaml
vendored
7
.github/workflows/deploy.yaml
vendored
@@ -151,6 +151,11 @@ jobs:
|
|||||||
git fetch origin main
|
git fetch origin main
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|
||||||
cp .env.example .env
|
if [ ! -f .env ]; then
|
||||||
|
cp .env.example .env
|
||||||
|
echo ".env yaratildi, production qiymatlarini kiriting!"
|
||||||
|
fi
|
||||||
|
|
||||||
export PORT=8085
|
export PORT=8085
|
||||||
|
docker pull ${{ secrets.DOCKER_USERNAME }}/${{ env.PROJECT_NAME }}:${{ github.run_number }}
|
||||||
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }} --with-registry-auth
|
docker stack deploy -c stack.yaml ${{ env.PROJECT_NAME }} --with-registry-auth
|
||||||
|
|||||||
Reference in New Issue
Block a user