Commit a41f674d authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(gitlabci and batchfile edit): gitlabci and batchfile edit

parent 79f2e079
Pipeline #919 passed with stage
in 34 minutes and 43 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
- 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 $env:CONTAINERNAME
# - ./scripts/command.ps1 # - ./scripts/command.ps1
allow_failure: true allow_failure: true
only: only:
......
cd c:/Users/administrator && docker-compose config && docker-compose up -d --force-recreate -p %CONTAINERNAME% cd c:/Users/administrator && docker-compose config && docker-compose up -d --force-recreate -p %1
\ No newline at end of file \ No newline at end of file
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