Is there a way to upload GitLab CI artifacts to an Openshift container?Gitlab CI how to deploy the latest to a specific directoryCache files are gone in my GitLab CI pipelineGitlab-CE docker build faild “unknown instruction”How to build, push and pull multiple docker containers with gitlab ci?Can't annotate secret for OpenShift private git repo deploymentCan't Access Private MySQL Docker Image From Gitlab CIGitlab-ci and deploy.shUnable to access file from the Git submodule in GitLab-CI JobGitlab-Ci. Transfer maven m2 local repository between stagesFabric8io plugin with Gitlab CI

Python - The Collatz Sequence

Can planetary bodies have a second axis of rotation?

Writing a letter of recommendation for a mediocre student

Algorithm that spans orthogonal vectors: Python

US entry with tourist visa but past alcohol arrest

Is it true that, "just ten trading days represent 63 per cent of the returns of the past 50 years"?

How do rulers get rich from war?

Pandas aggregate with dynamic column names

How to make interviewee comfortable interviewing in lounge chairs

GitHub repo with Apache License version 2 in package.json, but no full license copy nor comment headers

Which museums have artworks of all four ninja turtles' namesakes?

Can the U.S. president make military decisions without consulting anyone?

Was there a trial by combat between a man and a dog in medieval France?

What are these pixel-level discolored specks? How can I fix it?

Why there so many pitch control surfaces on the Piaggio P180 Avanti?

What do you do if you have developments on your paper during the long peer review process?

C# vector library

Figuring out the frequency components using FFT

I feel like most of my characters are the same, what can I do?

How could artificial intelligence harm us?

In a jam session, when asked which key my non-transposing instrument (like a violin) is in, what do I answer?

To this riddle, I invite

Is Zack Morris's 'time stop' ability in "Saved By the Bell" a supernatural ability?

Did Apollo carry and use WD40?



Is there a way to upload GitLab CI artifacts to an Openshift container?


Gitlab CI how to deploy the latest to a specific directoryCache files are gone in my GitLab CI pipelineGitlab-CE docker build faild “unknown instruction”How to build, push and pull multiple docker containers with gitlab ci?Can't annotate secret for OpenShift private git repo deploymentCan't Access Private MySQL Docker Image From Gitlab CIGitlab-ci and deploy.shUnable to access file from the Git submodule in GitLab-CI JobGitlab-Ci. Transfer maven m2 local repository between stagesFabric8io plugin with Gitlab CI






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a GitLab CI pipeline which builds a few artifacts. For example:



train:job:
stage: train
script: python script.py
artifacts:
paths:
- artifact.csv
expire_in: 1 week


Now I deploy the repository to OpenShift using the following step in my GitLab pipeline. This will pull my GitLab repo inside OpenShift. It does not include the artifacts from the 'testing'.



deploy:app:
stage: deploy
image: ayufan/openshift-cli
before_script:
- oc login $OPENSHIFT_DOMAIN --token=$OPENSHIFT_TOKEN
script:
- oc start-build my_app


How can I let OpenShift use this repository, plus the artifacts created in my pipeline?










share|improve this question






























    0















    I have a GitLab CI pipeline which builds a few artifacts. For example:



    train:job:
    stage: train
    script: python script.py
    artifacts:
    paths:
    - artifact.csv
    expire_in: 1 week


    Now I deploy the repository to OpenShift using the following step in my GitLab pipeline. This will pull my GitLab repo inside OpenShift. It does not include the artifacts from the 'testing'.



    deploy:app:
    stage: deploy
    image: ayufan/openshift-cli
    before_script:
    - oc login $OPENSHIFT_DOMAIN --token=$OPENSHIFT_TOKEN
    script:
    - oc start-build my_app


    How can I let OpenShift use this repository, plus the artifacts created in my pipeline?










    share|improve this question


























      0












      0








      0








      I have a GitLab CI pipeline which builds a few artifacts. For example:



      train:job:
      stage: train
      script: python script.py
      artifacts:
      paths:
      - artifact.csv
      expire_in: 1 week


      Now I deploy the repository to OpenShift using the following step in my GitLab pipeline. This will pull my GitLab repo inside OpenShift. It does not include the artifacts from the 'testing'.



      deploy:app:
      stage: deploy
      image: ayufan/openshift-cli
      before_script:
      - oc login $OPENSHIFT_DOMAIN --token=$OPENSHIFT_TOKEN
      script:
      - oc start-build my_app


      How can I let OpenShift use this repository, plus the artifacts created in my pipeline?










      share|improve this question














      I have a GitLab CI pipeline which builds a few artifacts. For example:



      train:job:
      stage: train
      script: python script.py
      artifacts:
      paths:
      - artifact.csv
      expire_in: 1 week


      Now I deploy the repository to OpenShift using the following step in my GitLab pipeline. This will pull my GitLab repo inside OpenShift. It does not include the artifacts from the 'testing'.



      deploy:app:
      stage: deploy
      image: ayufan/openshift-cli
      before_script:
      - oc login $OPENSHIFT_DOMAIN --token=$OPENSHIFT_TOKEN
      script:
      - oc start-build my_app


      How can I let OpenShift use this repository, plus the artifacts created in my pipeline?







      gitlab openshift gitlab-ci






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 15:02









      Tom VerstraeteTom Verstraete

      742 silver badges14 bronze badges




      742 silver badges14 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          In general OpenShift build pipelines rely on the s2i build process to build applications.



          The best practice for reusing artifacts between s2i builds would either be through using incremental builds or chaining multiple BuildConfig definitions (the output image of one BuildConfig being fed as source image into another BuildConfig) together via the spec.source.images or spec.source.git configuration in the BuildConfig definition.



          In your case since you are using a Jenkins pipeline to generate your artifacts instead of the OpenShift build process you really only need to combine your artifacts with your source code and the runtime container image.



          To do this you might create a builder container image that pulls those artifacts down from an external source during the assemble phase (via curl, wget, etc) of the s2i workflow. You could then configure your BuildConfig to point at your source repository. At build time the BuildConfig will pull down your source code and the assemble script will pull down your artifacts.






          share|improve this answer


























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );














            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55400832%2fis-there-a-way-to-upload-gitlab-ci-artifacts-to-an-openshift-container%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0
















            In general OpenShift build pipelines rely on the s2i build process to build applications.



            The best practice for reusing artifacts between s2i builds would either be through using incremental builds or chaining multiple BuildConfig definitions (the output image of one BuildConfig being fed as source image into another BuildConfig) together via the spec.source.images or spec.source.git configuration in the BuildConfig definition.



            In your case since you are using a Jenkins pipeline to generate your artifacts instead of the OpenShift build process you really only need to combine your artifacts with your source code and the runtime container image.



            To do this you might create a builder container image that pulls those artifacts down from an external source during the assemble phase (via curl, wget, etc) of the s2i workflow. You could then configure your BuildConfig to point at your source repository. At build time the BuildConfig will pull down your source code and the assemble script will pull down your artifacts.






            share|improve this answer































              0
















              In general OpenShift build pipelines rely on the s2i build process to build applications.



              The best practice for reusing artifacts between s2i builds would either be through using incremental builds or chaining multiple BuildConfig definitions (the output image of one BuildConfig being fed as source image into another BuildConfig) together via the spec.source.images or spec.source.git configuration in the BuildConfig definition.



              In your case since you are using a Jenkins pipeline to generate your artifacts instead of the OpenShift build process you really only need to combine your artifacts with your source code and the runtime container image.



              To do this you might create a builder container image that pulls those artifacts down from an external source during the assemble phase (via curl, wget, etc) of the s2i workflow. You could then configure your BuildConfig to point at your source repository. At build time the BuildConfig will pull down your source code and the assemble script will pull down your artifacts.






              share|improve this answer





























                0














                0










                0









                In general OpenShift build pipelines rely on the s2i build process to build applications.



                The best practice for reusing artifacts between s2i builds would either be through using incremental builds or chaining multiple BuildConfig definitions (the output image of one BuildConfig being fed as source image into another BuildConfig) together via the spec.source.images or spec.source.git configuration in the BuildConfig definition.



                In your case since you are using a Jenkins pipeline to generate your artifacts instead of the OpenShift build process you really only need to combine your artifacts with your source code and the runtime container image.



                To do this you might create a builder container image that pulls those artifacts down from an external source during the assemble phase (via curl, wget, etc) of the s2i workflow. You could then configure your BuildConfig to point at your source repository. At build time the BuildConfig will pull down your source code and the assemble script will pull down your artifacts.






                share|improve this answer















                In general OpenShift build pipelines rely on the s2i build process to build applications.



                The best practice for reusing artifacts between s2i builds would either be through using incremental builds or chaining multiple BuildConfig definitions (the output image of one BuildConfig being fed as source image into another BuildConfig) together via the spec.source.images or spec.source.git configuration in the BuildConfig definition.



                In your case since you are using a Jenkins pipeline to generate your artifacts instead of the OpenShift build process you really only need to combine your artifacts with your source code and the runtime container image.



                To do this you might create a builder container image that pulls those artifacts down from an external source during the assemble phase (via curl, wget, etc) of the s2i workflow. You could then configure your BuildConfig to point at your source repository. At build time the BuildConfig will pull down your source code and the assemble script will pull down your artifacts.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 28 at 17:58

























                answered Mar 28 at 17:46









                NickNick

                8427 silver badges19 bronze badges




                8427 silver badges19 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















                    draft saved

                    draft discarded















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55400832%2fis-there-a-way-to-upload-gitlab-ci-artifacts-to-an-openshift-container%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현