Added multi platform docker image
Like I mentioned in #917 , I would love to have the docker image for arm64 as well. I made a few changes, since I don't understand any of this matrix variables I just copy pasted my config and adjusted it. You would need to add the checks you have and the matrix vars you use.
doesn't work :shrug:
ERROR: invalid tag "ghcr.io/docat-org/docat:$(git describe --tags)": invalid reference format
I will look into it later today
I am a little bit confused, the tags in the docker image correspond to the tags of the releases, but the actions only run on pushes and pull requests. Where did the previous actions get the tags from?
I am a little bit confused, the tags in the docker image correspond to the tags of the releases, but the actions only run on pushes and pull requests. Where did the previous actions get the tags from?
I guess previously
- name: Build Image
run: |
docker build . --build-arg DOCAT_VERSION=$(git describe --tags --always) --tag ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:${{ github.sha }}
docker tag ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:${{ github.sha }} ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:unstable
- name: tag latest and version on release
run: |
docker tag ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:${{ github.sha }} ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:$(git describe --tags)
docker tag ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:${{ github.sha }} ${{ matrix.registry.name }}/${{ matrix.registry.org }}/docat:latest
if: startsWith(github.event.ref, 'refs/tags')
the part using $(git describe --tags) only was executed for startsWith(github.event.ref, 'refs/tags') tag builds
Basically i guess always build and tag 'unstable' and only on tag builds also tag 'latest' and the actual tag
This might work but it seems this environment is not able to install yarn packages???
#22 211.6 error Error: https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-6.1.3.tgz: ESOCKETTIMEDOUT
I see, it should work, because I could compile it on my arm server, maybe its some weird issue with github workers.
Maybe just updating the dependencies will fix it lets see :shrug: https://github.com/docat-org/docat/pull/919
ok idk seems not to work for our docker image / build process :shrug:
I don't understand it, maybe someone else in the future will have the same problem and fix it xD