simp_le icon indicating copy to clipboard operation
simp_le copied to clipboard

Automated docker builds seem to be broken

Open cornim opened this issue 5 years ago • 8 comments

Last build on Docker Hub is over 1 year old and on version 0.1dev

cornim avatar Jan 24 '20 13:01 cornim

Thanks for the report.

I'm not 100% sure we ever had automated builds working. @buchdag, do you recall? I remember we had a lot of trouble with it, and I don't have a memory of having actually solved the issue.

I triggered the build manually, so we should have a new one soon.

zenhack avatar Jan 25 '20 19:01 zenhack

I got an email, which notified me, that 0.7 isn't going to be supported anymore, as it uses the v1 endpoint. So i tried to update, but there aren't any stable tags, only "latest" (i used zenhack/simp_le@sha256:9cfaf23695a794c4df2ffcd5c5185c79720fe912f63087912e5d9b81017d8f84), which seems to be a develop-build. But i cannot verify that.

If i can provide any help on the automated builds, let me know.

rejinka avatar Mar 11 '20 05:03 rejinka

Right now latest should be the same as the 0.17 release. It's built from master, but there weren't actually any changes between the release and then.

It does look like at some point we consistently had new images for each tag. I'll see if I can dig into why they aren't building anymore.

zenhack avatar Mar 11 '20 06:03 zenhack

@zenhack I confirm that Docker automated build never worked, as far as I remember you did not manage to sync your Dockerhub and GitHub accounts to trigger the build on new pushes / tags, and we never were able to understand why.

We had new images for tagged release because I was manually triggering them with a Build Trigger URL (a POST request against DockerHub API) you provided me. I was under the impression that no one really used the Docker version anyway so I stopped doing that a while ago.

buchdag avatar Mar 12 '20 17:03 buchdag

If the Docker version is actually used maybe I should resume work on it.

buchdag avatar Mar 12 '20 17:03 buchdag

If you want to do that it would be appreciated. I spent a bit of time futzing with trying to get it to connect the account, pushed a commit to test, but no luck.

zenhack avatar Mar 12 '20 18:03 zenhack

@buchdag do you manage @zenhack's dockerhub account? I'm a bit confused here. For a test, i set up https://hub.docker.com/repository/docker/naji/simp_le, which is connected to https://github.com/rejinka/simp_le. I managed to get autobuilding:

  • new docker-tag "latest", if master is pushed
    • Source-Type: Branch
    • Source: master
    • Docker Tag: latest
    • Dockerfile location: docker/Dockerfile
    • Build Context: /
  • new docker-tag based on a git-tag, if git-tag is pushed.
    • Source-Type: Tag
    • Source: /^[0-9.]+$/
    • Docker Tag: {sourceref}
    • Dockerfile location: docker/Dockerfile
    • Build Context: /

Also i found a way, to force the build of old tags. Assuming, you've configured a "Build trigger" with url http://example.com/trigger and a tag 0.18.0, you can call curl -H "Content-Type: application/json" -X POST --data '{"source_type": "Tag", "source_name": "0.18.0"}' http://example.com/trigger to force the build a docker image with corresponding tag.

If you've got any trouble, setting this up, we can try to solve those, having a call or something.

rejinka avatar May 13 '20 04:05 rejinka

Is there any interest to get this fixed? If not, please close the issue and i'll figure out what i can do myself.

rejinka avatar Sep 02 '20 15:09 rejinka