dita-ot / dita-ot-action

GitHub Action for building PDFs and static websites using DITA Open Toolkit
https://www.dita-ot.org
Apache License 2.0
8 stars 4 forks source link

Increment the Docker image version via GitHub Action #5

Closed infotexture closed 1 year ago

infotexture commented 1 year ago

Description

So far, @jason-fox has bumped the DITA-OT version in the dita-ot-action/Dockerfile manually after each release, but since we were all busy at DITA-OT Day, we missed that step for the 4.0 release.

The Docker image currently uses 3.7.4:

FROM ghcr.io/dita-ot/dita-ot:3.7.4 AS DITA_OT

Possible Solution

Could we automate this process as part of the normal DITA-OT release process?

I realize there may be a bit of a chicken-and-egg problem here, as the release may need to be published before this change can (or should) be made, but if the action code would at least generate a PR automatically, we could wait to merge the PR until the release has been published.

jelovirt commented 1 year ago

This shouldn't be too complex:

  1. clone action repo
  2. edit Dockerfile
  3. commit changes
  4. create tag
  5. push master and tag

Possibly also create tag for major.minor and force-push that.

jason-fox commented 1 year ago

If dita-ot/dita-ot has a tag xxxx, then the following command will edit the Dockerfile over here in dita-ot/dita-ot-action

sed -E  's/([0-9]{1,}.){1,}([0-9]){1,}/xxxx/g' Dockerfile  > Dockerfile.tmp && mv Dockerfile.tmp Dockerfile