R
R
Roman Chugunov2018-06-15 16:12:35
GitLab
Roman Chugunov, 2018-06-15 16:12:35

Gitlab ci how to compile the project correctly? artifacts untracked what is it?

Hello.
In general, I insist gitlab ci for the Electron application ...
The problem is that I am building an application for all platforms. Those. I still need wine >= 1.8.
On the coma, where I collect, everything is there. But it was written to make your own container with wine and node, which weighs 1.5 for gitlab ci.
And the whole thing is starting for a long time, going to ... Maybe I'm doing everything wrong ...
There is a build script for the application. But since I am still building an application on my computer for all platforms, is it possible to somehow transfer these ready-made binaries to gitlab-ci artifacts? Artifacts has untracked and I don't really understand what for it is needed. To download untracked files as artifacts? Like so it is written in off. documentation... Or am I wrong? I tried to set untracked: true, added the path to the already built binaries to the paths + the folder with the binaries was not added to gitignore (Ie, it was definitely untracked). But still the binaries were not uploaded to gitlab. How does it even work, this untracked: true? Or did I make a mistake somewhere? Maybe in .gitlab-ci.yml you also need to specify how to load these files?
.gitlab-ci.yml:

image: 4tqrgqe5yrgfd/electron

stages:
  - build

build:
  stage: build
  script:
    - cd packages/app/desktop/
    - npm i
    - npm run pack
  artifacts:
    untracked: true
    paths:
      - packages/app/desktop/binary/
  dependencies: []
  only:
    - tags

mountain-container, Dockerfile:
FROM ubuntu

RUN dpkg --add-architecture i386

RUN apt update

RUN apt install tzdata -y
RUN echo "Europe/Moscow" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata
RUN apt install libgtkextra-dev libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 wine64 gcc-multilib g++-multilib mono-devel nodejs npm -y
RUN apt autoremove
RUN npm i -g npm

Help to understand, please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question