Create app-tag script to help generate git tags for apps #120

Closed
opened 2021-03-22 22:15:43 +00:00 by decentral1se · 2 comments
Owner

Part of coop-cloud/organising#51.

Reading over the notes again, I think (!) we finished up with the idea that the version of the app is derived from the app service version.

So, for gitea right now (e.g. 03c48f99de/compose.yml (L6)), we'd publish the 1.13.4 tag. So, app-tag.sh gitea would produce 1.13.4.

Now, if we happen to update an underlying service like the db (e.g. 03c48f99de/compose.yml (L62)) to 10.6 but the main app service remains on 1.13.4 then app-tag.sh gitea would produce 1.13.4~1.

An example of the resulting abra-apps.json is then:

"versions": {
  "1.13.4": {
    "app": {"image": "gitea", "tag": "1.13.4", "digest": "d3adb33f"},
    "db: {"image: "mariadb", "tag": "10.5", "digest": "c3351007"}
  },
  "1.13.4~1": {
    "app": {"image": "gitea", "tag": "1.13.4", "digest": "d3adb33f"},
    "db: {"image: "mariadb", "tag": "10.6", "digest": "0101c0de"}
  },
}

app-tag.sh should just read the latest HEAD of the gitea app repo, look at the existing git tags, look at the current compose.yml contained tags and then generate the correct tag.

Part of https://git.autonomic.zone/coop-cloud/organising/issues/51. Reading over [the notes](https://codimd.autonomic.zone/d4HZ37NeSRyef-5I6RvUCw#) again, I think (!) we finished up with the idea that the version of the app is derived from the `app` service version. So, for `gitea` right now (e.g. https://git.autonomic.zone/coop-cloud/gitea/src/commit/03c48f99de69c168550e8028441e33cee7afdb62/compose.yml#L6), we'd publish the `1.13.4` tag. So, `app-tag.sh gitea` would produce `1.13.4`. Now, if we happen to update an underlying service like the `db` (e.g. https://git.autonomic.zone/coop-cloud/gitea/src/commit/03c48f99de69c168550e8028441e33cee7afdb62/compose.yml#L62) to `10.6` but the main `app` service remains on `1.13.4` then `app-tag.sh gitea` would produce `1.13.4~1`. An example of the resulting `abra-apps.json` is then: ```json "versions": { "1.13.4": { "app": {"image": "gitea", "tag": "1.13.4", "digest": "d3adb33f"}, "db: {"image: "mariadb", "tag": "10.5", "digest": "c3351007"} }, "1.13.4~1": { "app": {"image": "gitea", "tag": "1.13.4", "digest": "d3adb33f"}, "db: {"image: "mariadb", "tag": "10.6", "digest": "0101c0de"} }, } ``` `app-tag.sh` should just read the latest HEAD of the gitea app repo, look at the existing git tags, look at the current `compose.yml` contained tags and then generate the correct tag.
decentral1se added this to the Beta release milestone 2021-03-22 22:15:43 +00:00
decentral1se added the
enhancement
label 2021-03-22 22:15:43 +00:00
Author
Owner

Fuck it actually, we can do this manually for now!

42d7213e12

Fuck it actually, we can do this manually for now! https://git.autonomic.zone/coop-cloud/docs.cloud.autonomic.zone/commit/42d7213e121b4c98022363244b6b6b733378f167
Author
Owner
Testing with https://git.autonomic.zone/coop-cloud/gitea/src/tag/1.13.6
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#120
No description provided.