Setup Drone CI cronjob to build & publish abra-apps.json #125

Closed
opened 2021-04-02 15:00:20 +00:00 by decentral1se · 4 comments
Owner

Once #121 is done we can automate the generation and publishing via Drone. Drone already supports cronjobs, so we just need to config it all up via the .drone.yml and the repo settings. Then we could get generation running every X hours or so.

Once https://git.autonomic.zone/coop-cloud/abra/issues/121 is done we can automate the generation and publishing via Drone. Drone already supports cronjobs, so we just need to config it all up via the `.drone.yml` and the repo settings. Then we could get generation running every X hours or so.
decentral1se added this to the Beta release milestone 2021-04-02 15:00:20 +00:00
decentral1se added the
enhancement
label 2021-04-02 15:00:20 +00:00
Author
Owner

This will be a bit tricky since we can only run the script in the context of a local abra install right now. We can work on decoupling this going forward. It's all very WIP right now.

This will be a bit tricky since we can only run the script in the context of a local abra install right now. We can work on decoupling this going forward. It's all very WIP right now.
Author
Owner

Thoughts on how to make this work:

  • we'd need to separate the bin/.py script from this repo
  • we'd need to prepare a docker image with all the necessary CLI tools (yq/jq/etc.)
  • we could run the script to generate the new json file (not commited to the repo)
  • then we could put all the deploy stuff in that repo and run the deploy there
Thoughts on how to make this work: - we'd need to separate the bin/.py script from this repo - we'd need to prepare a docker image with all the necessary CLI tools (yq/jq/etc.) - we could run the script to generate the new json file (not commited to the repo) - then we could put all the deploy stuff in that repo and run the deploy there
Author
Owner

we'd need to prepare a docker image with all the necessary CLI tools (yq/jq/etc.)

https://git.autonomic.zone/coop-cloud/abra/src/branch/main/Dockerfile decentral1se/abra

> we'd need to prepare a docker image with all the necessary CLI tools (yq/jq/etc.) https://git.autonomic.zone/coop-cloud/abra/src/branch/main/Dockerfile `decentral1se/abra`
Author
Owner

Comrades, it is done.

https://git.autonomic.zone/coop-cloud/auto-apps-json

Unfortunately ran into coop-cloud/auto-apps-json#1 which had to happen at some point, I guess. I will probably just sign up for the Pro account until we get The Peoples Container Repository.

So, any recipe repo can just add the following to the .drone.yml file:

  - name: trigger downstream builds
    image: plugins/downstream
    settings:
      server: https://drone.autonomic.zone
      token:
        from_secret: decentral1se_token
      fork: true
      repositories:
        - coop-cloud/auto-apps-json
    depends_on:
      - release a new version

(We will template this file out shortly in coop-cloud/organising#68)

We can also use the cron job runner for Drone if we need it also:

image

And now for the rest of the day. If anyone needs me I'll be printing anarchist literature in the south of Rotterdam.

Comrades, it is done. > https://git.autonomic.zone/coop-cloud/auto-apps-json Unfortunately ran into https://git.autonomic.zone/coop-cloud/auto-apps-json/issues/1 which had to happen at some point, I guess. I will probably just sign up for the Pro account until we get The Peoples Container Repository. So, any recipe repo can just add the following to the `.drone.yml` file: ```yaml - name: trigger downstream builds image: plugins/downstream settings: server: https://drone.autonomic.zone token: from_secret: decentral1se_token fork: true repositories: - coop-cloud/auto-apps-json depends_on: - release a new version ``` (We will template this file out shortly in https://git.autonomic.zone/coop-cloud/organising/issues/68) We can also use the cron job runner for Drone if we need it also: ![image](/attachments/da676649-e3a7-49b4-b166-a9d1129068b8) And now for the rest of the day. If anyone needs me I'll be printing anarchist literature in the south of Rotterdam.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/abra#125
No description provided.