r/droneci • • Aug 09 '21

Question Build Docker Image with Private NPM Registry

0 Upvotes

Hey guys,

I need to build a Docker Image and push it to a private docker registry.
For now I use the docker plugin to do that, but here comes the problem.

When I do an "npm install" inside my Dockerfile, I get an "failed, reason: getaddrinfo ENOTFOUND" error, because I use a private npm registry from where I get the packages.

Now I dont fully understand the error I get there. Does that mean he cannot reach the address or he doesnt even understand how to resolve the hostname?

Can someone help me get this working.

---
More Info:

Dockerfile (for vue.js app)

FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm config set strict-ssl false
RUN npm install
COPY ./ .
RUN npm run build

FROM nginx:1.20 as production-stage
ENV TZ="Europe/Berlin"
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf

r/droneci • • Jul 24 '18

Question Local problems

0 Upvotes

I run a local instaince of Gitea. and am trying to also run drone locally this has caused a problems:

The docker images are not able to connect to the host via the hostname in /etc/hosts.


r/droneci • • Jun 11 '21

Question Drone CI - help please - deployment of static website

0 Upvotes

hi guys

Can someone help me with the following please. I'm currently using Gitea and Drone CI (running in Docker on my NAS, so selfhosted!) and I'm trying to roll out my html code, via a pipeline, to my website. I just have no idea how to make this happen.

  • Can Drone CI somehow put my html code into a web service image and eventually deploy it to my website?

  • Or can I have Drone CI put the code in a certain location on my NAS, so that a docker image that runs, picks it up and shows it on my website?

  • or can Drone CI somehow execute a docker-compose.yml file?

what is the easiest/fastest thing i can do to get this done?

so what Iam trying to achieve:

html code -> gitea -> trigger -> Drone CI -> puts my code online (somehow)


r/droneci • • Aug 17 '18

Question Drone secret value is readable. Is it a vulnerability? How to prevent it?

0 Upvotes

Hi,

I have given the drone secret as shown in the picture below

Then I have the drone.yml file as

Now when the pipeline triggers I can see the Drone Secret Value as below

Can some one help me how to resolve this.

Thanks


r/droneci • • 21d ago

r/droneci is available for adoption

1 Upvotes

/r/droneci is ready for a fresh start, new energy, new direction, and someone like you to bring it back to life. If you’ve been thinking about growing your impact without starting from scratch, this is your chance!

Ready to take it over?

Head to r/RedditRequest to submit your request and make it yours before it’s taken.

First things first

To request this subreddit, make sure you:


r/droneci • • Mar 02 '20

Share A detailed step-by-step guide to deploying Drone to AWS EC2

Thumbnail
devforth.io
2 Upvotes

r/droneci • • Jan 10 '22

Question Drone - GitLab OAuth - invalid_client

3 Upvotes

Hello,

I tried to set up Drone using a locally hosted GitLab instance. I followed this documentation:

https://docs.drone.io/server/provider/gitlab/

But when I try to authorize try to access GitLab I get the following error:

invalid_client: Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.

Is there any possibility to debug this? Any further information how to identify the main problem?

I already double-checked the logs from GitLab and Drone.

Thanks for help.


r/droneci • • Jun 02 '18

Discussion GDPR doesn't apply to Drone CI

6 Upvotes

So I heard you needed to close Discourse because of GDPR trolls. Well, let me tell you something then - it doesn't apply to you (provided your business is not registered in European Union). According to Article 3 of GDPR:

2. This Regulation applies to the processing of personal data of data subjects who are in the Union by a controller or processor not established in the Union, where the processing activities are related to:

(a) the offering of goods or services, irrespective of whether a payment of the data subject is required, to such data subjects in the Union; or

(b) the monitoring of their behaviour as far as their behaviour takes place within the Union.

Which is that infamous extraterritorial clause. It boils down to "offering of goods or services" thing in 2(a). According to Recital 23 of GDPR:

In order to determine whether such a controller or processor is offering goods or services to data subjects who are in the Union, it should be ascertained whether it is apparent that the controller or processor envisages offering services to data subjects in one or more Member States in the Union.

Whereas the mere accessibility of the controller’s, processor’s or an intermediary’s website in the Union, of an email address or of other contact details, or the use of a language generally used in the third country where the controller is established, is insufficient to ascertain such intention, factors such as the use of a language or a currency generally used in one or more Member States with the possibility of ordering goods and services in that other language, or the mentioning of customers or users who are in the Union, may make it apparent that the controller envisages offering goods or services to data subjects in the Union.

Drone CI doesn't use European Union languages, European Union currencies (only US dollars are accepted), doesn't mention customers or users who are in the union. Therefore, you pretty much can ignore GDPR.

Therefore, there is no need to disable Discourse forums.


r/droneci • • Sep 30 '22

Share Running Drone CI with Podman

Thumbnail
blog.m5e.de
10 Upvotes

r/droneci • • Jan 08 '22

Question Deploy docker-compose files using drone?

2 Upvotes

Hi there,

Been looking for a while but can’t find a good answer. I have all my services in docker compose files. I would like to redeploy services whenever one of those files changes. The files are stored on GitHub. Is this something that’s possible to do with Drone CI?


r/droneci • • Jan 23 '22

Question Disable Pull Requests vs Disable forks

1 Upvotes

Cannot find the difference between

  1. Disable Pull Requests

  2. Disable forks

explained in the docs. These settings are listed under <project> -> Settings -> General -> Project Webhooks.

Does 1. mean disabling drone execution if PR is sent from the same organization/user as the project itself, and 2. means disabling it for PRs sent from 3rd party forks?

If that is the case, then what exactly do the settings under org secrets signify:

$ drone orgsecret ls
my_secret 
Organization:       myuser
Pull Request Read:  false
Pull Request Write: false

Does pull request in this context mean the same as disabling it for both 1) & 2) case from above?


r/droneci • • Jan 21 '22

Question Security - is it possible that someone's drone site is inadvertently public?

1 Upvotes

Don't want to post the url here in case, but picked up someone's drone repository builds page from google results and can access to it. Going to the root page it does ask for authentication though.

No settings tab for the repo, nor 'new build' button. Is it some feature of drone i'm unaware of, or someone has part of their drone instance publicly exposed?


r/droneci • • Dec 03 '19

Stuck at the clone step

3 Upvotes

Hi! I have installed Drone with Helm on Kubernetes, linked to my repo etc. When I start the pipeline though it gets stuck at the clone step. The logs of the containers don't say anything useful. What can I do to troubleshoot? Thanks!


r/droneci • • Oct 06 '19

Question NPM Plugin: Publishing

2 Upvotes

Hello all, I've been trying to publish my package to a private registry and no matter what I do, I get the error

level=fatal msg="Registry values do not match .drone.yml: https://npm.<private>.com package.json: https://registry.npmjs.org"

I have tried setting in package.json ``registry`` and numerous other attempts but nothing works. Any idea why?


r/droneci • • Aug 17 '18

Suggestion Improvement Conditional detachment based on time or container output

1 Upvotes

Detachment feature is very useful but I think it would be helpful to be certain the container is ready before moving on to the next step. I think the below potential configuration is self explanatory.

pipeline:
  step1:
    detach: true
      after: 30s

...

pipeline:
  step1:
    detach: true
      on_output: "Start listening on"

r/droneci • • Aug 19 '18

Question Cannot see repository that an Admin activated

2 Upvotes

I just set Drone up using the "Restricted Registrations" setup detailed in http://docs.drone.io/user-registration/

With this, I am able to activate Repo A (a private repo in an org I belong to) that I am admin of, but when I activate Repo B, on which I only have read/write permissions, I get "Failed to activate your repository", which I believe is expected.

However, when I get an admin to activate Repo B, I cannot see the repository from my account. Am I missing something here? How do you get a repository which another person has activated to show up on your own list? Subsequently trying to activate it under my account just gives me the same "Failed to activate your repository" error.


r/droneci • • Aug 17 '18

Question How can I hide the username and password in the NPM plugin?

1 Upvotes

Hi,

I have tried using Drone Secrets for NPM plugin. it is not working. But drone secrets are working for other plugins like GCR, Docker.

How can I hide the username and password in the below NPM plugin?

pipeline:

npm:

image: plugins/npm

username: bob

password: password

email: [email protected]

Thank you


r/droneci • • Dec 05 '18

Share Using Drone to Handle Multiple Petabytes of DNA information

Thumbnail blog.drone.io
4 Upvotes

r/droneci • • Nov 29 '18

Question Tasks Randomly Get Stuck

3 Upvotes

I've seen issues about this on Github but it's not clear to me whether to open a new issue or just ask here - please point me to the relevant channel.

I randomly see my Drone CI being stuck on a Pending build while no task is running.

Sometimes killing fails (Cannot force cancel a non-running build), but some other times I have to actually completely tear-down the Drone infrastructure for it to get unstuck.

For example, look at the pictures and captions that go with them.

We observe this behavior on various other builds, some of them with matrix builds, some of them without. Initially we had a concurrency of 2 agents and since we use cache we put it down to 1 agent - same issue. But for our cache (drillster/drone-volume-cache) we specify a cache key that is not shared between matrix tasks (Eg [DRONE_REPO_OWNER, DRONE_REPO_NAME, ELIXIR_TAG]) so it shouldn't be the source of the issue, right?

Any help appreciated!

In another topic... Amazing work on Drone!


r/droneci • • Feb 28 '19

Discussion Parse Jsonnet files during building

1 Upvotes

Hi,

Has supporting Jsonnet configurations "directly" been considered? So instead of having `.drone.yml` in the repo you would have `.drone.jsonnet` which would be parsed by Drone automatically?

Also see https://github.com/drone/docs/issues/394


r/droneci • • Aug 22 '18

Drone Silently failing - Bitbucket Access Token Expired

1 Upvotes

Hey, so I had builds of a Bitbucket repo working just fine. I then reassigned the repo to a new Team account. I reconfigured my drone-server environment to use a new DRONE_ORGS and also generated new keys for DRONE_BITBUCKET_CLIENT and DRONE_BITBUCKET_SECRET.

I was able to restart Drone and sync to the new url for the repo under with the new Bitbucket account. I was also able to successfully deploy some builds once I first had this setup.

Now after some time (an hour or two) I'm seeing the following in the logs:

drone-server_1  | time="2018-08-22T14:09:31Z" level=error msg="Error #01: Access token expired. Use your refresh token to obtain a new access token.\n" ip=<<snip>> latency=10.205742161s method=POST path="/hook" status=404 time="2018-08-22T14:09:31Z" user-agent="Bitbucket-Webhooks/2.0"

I never had an issue like this previously.

Any ideas on what I need to do?


r/droneci • • Aug 14 '18

Question Gitlab considers all pipelines triggered by the user who set the Drone application

1 Upvotes

Using Drone 0.8, I've set a new Drone server and agent and connected to Gitlab (saas).

Since my user is the one who set the application as described in the docs - I went to my user settings > Applications, and created the Drone app to generate the keys it uses.

Now all pipelines are shown in Gitlab under my name, and Drone shows in its UI all builds with my own user avatar.

Did I miss something? How can I fix this?


r/droneci • • Aug 22 '18

Question Gitlab builds are showing generic gravatar icons.

2 Upvotes

I have two problems with Gitlab and Drone, the problem is probably Gitlab, but I'm trying to understand whether I did something wrong with the integration.

  1. I'm seeing the same generic Gravatar icon next to all builds which is hard to understand who pushed what.
    Looking at the api/repos/<team>/<project>/builds/<build> I see under author_avatar this entry: https://www.gravatar.com/avatar/63bba6ec53cfc7f38edbef794fdc347c.jpg?s=128, this resolves to the Gravatar default icon unless suffixed with &d=identicon.

  2. The second problem is directly related to the first one - not only the right icon is not shown, the user which triggered this build has a different custom icon on Gitlab and not gravatar. Yet, I can't see it.

  3. An important note - The user profile icon on Drone (top right hand corner) gets the right Gravatar icon (resolved) or the actual profile picture correctly.

Any idea whats going on here?

I have another drone running with Github, where users' profile images are sent as expected and it works fluently...

Tech specs - Drone 0.8 running on AWS. Gitlab saas. Doing a migration from Gitlab CI to Drone.


r/droneci • • Jun 29 '20

Question CI in React Native with Drone

1 Upvotes

People,

This is possible? Generate APK or IPA and publish it in Market Apps?


r/droneci • • Aug 05 '20

Share Drone.io acquired by Harness

Thumbnail
techcrunch.com
19 Upvotes