Is there a way in which I can automate the packagi...
# compose
o
Is there a way in which I can automate the packaging of a Desktop Compose app using a CI agent? I've been trying to use a Gitlab-ci Runner. My goal is to automatically make an msi when I push to a certain branch. As far as I understand, one can't use
packageMsi
from a linux context, so there goes the docker runner. I've been trying to get it done with a windows-docker executor, but that doesn't seem to be able to reach gradle, and I don't think a win-gradle image exists on Docker Hub (at least I couldn't find one). I'm sorry if this has been asked before.
b
Use GitHub actions if you can. They have runners for all three main OSes that are not docker based. Combine that with matrix builds and you get a very smooth setup to get binaries for all platforms.
If you're happy with manual triggers, you could get away with an empty github repo that checks out your main gitlab repo to do stuff
I used to love gitlab, but I found their ci/cd strategy very ugly...
Alternatively, you could just use gradle wrapper under win-docker, which will automatically setup required gradle version for you (it does need a jvm present, though)
o
Since I'm using a self-managed Gitlab, this last option seems most alluring. But I am wasn't able to find that options. Or is there a relevant difference between "Gradle" and "Gradle Wrapper"? In that case, I will return to my research : )
I thought that specific option wasn't possible, because of answers liks this: https://stackoverflow.com/questions/42875510/cant-build-docker-image-via-gradle-on-windows-10
b
I simply meant to use
./gradlew build
instead of
gradle build
Google around
gradle wrapper
o
Thank you 😄