Commit 93e6f86f authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(update gitlabci for pull app): update gitlabci for pull image of karname

parent 40a0168d
Pipeline #922 passed with stage
in 41 minutes and 49 seconds
...@@ -69,7 +69,7 @@ build_in_staging: ...@@ -69,7 +69,7 @@ build_in_staging:
- Set-Variable -Name "envtext1" -Value "CONTAINERNAME=$env:CONTAINERNAME" - Set-Variable -Name "envtext1" -Value "CONTAINERNAME=$env:CONTAINERNAME"
- Add-Content .\.env "$envtext1" - Add-Content .\.env "$envtext1"
- echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./.env staging.karname.ir:c:/Users/administrator/.env # save .env in remote server - echo y | pscp.exe -batch -l administrator -pw $env:StagingPass ./.env staging.karname.ir:c:/Users/administrator/.env # save .env in remote server
- Set-Variable -Name "batchtext" -Value "cd c:/Users/administrator&&docker-compose config&&docker-compose -p $env:CONTAINERNAME up -d --force-recreate" - Set-Variable -Name "batchtext" -Value "cd c:/Users/administrator&&docker-compose config&&docker-compose pull app&&docker-compose -p $env:CONTAINERNAME up -d --force-recreate"
- Add-Content .\command.bat "$batchtext" - Add-Content .\command.bat "$batchtext"
- echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat - echo y | plink -batch -ssh administrator@staging.karname.ir -pw $env:StagingPass -m ./command.bat
# - ./scripts/command.ps1 # - ./scripts/command.ps1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment