Answer the question
In order to leave comments, you need to log in
How to setup GitLab Runner for deploy on Windows 7 and 10?
Good day!
There are a number of machines running Windows 7 and 10, all x64.
There is a process of developing some software in Lua, Python within GitLab.
Each software has its own separate project. Projects contain sources (*.py/*.lua) and compiled binaries.
When distributed using GitLab Runner, it clones the entire repository. How to prevent sources from getting on target machines?
Now a branch release has been created for this, where the source texts have been removed. Accordingly, when pushing, the task is launched:
stages:
- deploy
to_machine_one:
only:
refs:
- release
tags:
- to_machine_one
stage: deploy
script:
- set DEST_DIR=C:\stat
- IF not exist %DEST_DIR% (mkdir %DEST_DIR%)
- xcopy dist C:\stat /Q /R /Y
to_machine_two:
only:
refs:
- release
tags:
- to_machine_two
stage: deploy
script:
- set DEST_DIR=C:\stat
- IF not exist %DEST_DIR% (mkdir %DEST_DIR%)
- xcopy dist C:\stat /Q /R /Y
git checkout master dist/someprogram.exe
Answer the question
In order to leave comments, you need to log in
Divide the process into 2 stages:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question