Giter VIP home page Giter VIP logo

Comments (14)

GabrieleCalarota avatar GabrieleCalarota commented on September 21, 2024

I'm glad to help writing a CI workflow for github actions and help for the deploy pipeline

from liveactionmap.

kinshukdua avatar kinshukdua commented on September 21, 2024

@GabrieleCalarota thanks for offering to help! With the docker container finally set up, we can finally start integrating a CI workflow.

from liveactionmap.

GabrieleCalarota avatar GabrieleCalarota commented on September 21, 2024

I'm writing a CI pipeline in this PR on my forked repo

GabrieleCalarota#2

It will need a lot of rework, as the project is not born along with linting

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on September 21, 2024

As I see that the PR is merged is this Issue still valid or to be closed?

from liveactionmap.

kinshukdua avatar kinshukdua commented on September 21, 2024

It's still valid because CD pipeline and tests still need to be implemented.

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on September 21, 2024

Ah, Sorry.

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on September 21, 2024

Hey, So sadly I never worked with GitHub CI. However is there a chance to have a simple webhook trigger to have it auto-deploy on my docker host? @GabrieleCalarota Can you hop in discord so we can discuss the details?

from liveactionmap.

GabrieleCalarota avatar GabrieleCalarota commented on September 21, 2024

Hey, So sadly I never worked with GitHub CI. However is there a chance to have a simple webhook trigger to have it auto-deploy on my docker host? @GabrieleCalarota Can you hop in discord so we can discuss the details?

Sure, why don't we use GitHub discussions?

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on September 21, 2024

They're not enabled here. And personally, at least discord feels more... I think easy would be a suitable word?

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on September 21, 2024

If there is a chance to add

curl -X POST \
     --fail \
     -F token=GITLAB_TOKEN \
     -F ref=GITLAB_REF_NAME \
     https://gitlab.com/api/v4/projects/34155787/trigger/pipeline

to the CI after all tests are complete?

from liveactionmap.

GabrieleCalarota avatar GabrieleCalarota commented on September 21, 2024

If there is a chance to add

curl -X POST \
     --fail \
     -F token=GITLAB_TOKEN \
     -F ref=GITLAB_REF_NAME \
     https://gitlab.com/api/v4/projects/34155787/trigger/pipeline

to the CI after all tests are complete?

Yes, there should be a way or an action for doing normal POST or webhook triggers. But why don't we move the CD pipeline to github instead of having the deployment somewhere else where from the code?

Also is that the official deployment of the repo? @kinshukdua

from liveactionmap.

kinshukdua avatar kinshukdua commented on September 21, 2024

Yeah it is, we're discussing it over on discord.

from liveactionmap.

GabrieleCalarota avatar GabrieleCalarota commented on September 21, 2024

Ok fine, sorry didn't have time to download it yet

Anyway: https://github.com/marketplace/actions/trigger-gitlab-ci

I think this action would do the trick, will you set GITLAB_TOKEN and GITLAB_REF_NAME as repo secret?
For best practice, I would add also GITHUB_URL and PROJECT_ID as secrets

the code at the end would be :

- name: trigger Job
  uses: appleboy/gitlab-ci-action@master
  with:
    url: ${{ secrets.GITLAB_URL }}
    token: ${{ secrets.TOKEN }}
    project_id: ${{ secrets.PROJECT_ID }}
    ref: ${{ secrets.GITLAB_REF_NAME }}

from liveactionmap.

DomiiBunn avatar DomiiBunn commented on September 21, 2024

If you could take a look @GabrieleCalarota since I don't know how to make it run only after merge. Atm, it seems to run on merge requests as well,
And erm, It seams to have failed

from liveactionmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.