alexellis / derek

Reduce maintainer fatigue by automating GitHub
https://github.com/alexellis/derek/blob/master/USER_GUIDE.md
MIT License
808 stars 70 forks source link

Migrate to GitHub Actions #173

Closed cpanato closed 3 years ago

cpanato commented 3 years ago

Description

Remove travis-ci and create GitHub Actions workflows for build/test and publish the images

Need to set up the appropriate credentials in the repository to make the publish workflow work properly.

/assign @alexellis

Motivation and Context

How Has This Been Tested?

Types of changes

Checklist:

cpanato commented 3 years ago

Travis will not work :)

alexellis commented 3 years ago

Can you test in your own repo and confirm if the GHCR image looks as expected?

cpanato commented 3 years ago

for the ci workflow: https://github.com/cpanato/derek/actions/runs/657599793

for the publish workflow: https://github.com/cpanato/derek/actions/runs/657609156

images are available:

ctadeu/derek:latest
ctadeu/derek:v0.0.1-testing
ctadeu/derek:87d222337022a35d38f9f9c29e294ba73ee1e9c6
quay.io/cpanato/derek:latest
quay.io/cpanato/derek:v0.0.1-testing
quay.io/cpanato/derek:87d222337022a35d38f9f9c29e294ba73ee1e9c6

running the image:

$ docker pull quay.io/cpanato/derek:v0.0.1-testing
....
$ docker run quay.io/cpanato/derek:v0.0.1-testing
2021/03/16 13:00:05 Version: 0.1.4      SHA: 86e85231a20df03bc9187a31c400f4bbc4e2b9ba
2021/03/16 13:00:05 Timeouts: read: 5s, write: 5s hard: 0s.
2021/03/16 13:00:05 Listening on port: 8080
2021/03/16 13:00:05 Writing lock-file to: /tmp/.lock
2021/03/16 13:00:05 Metrics listening on port: 8081
alexellis commented 3 years ago

Please could you use GHCR instead of Docker Hub?

cpanato commented 3 years ago

@alexellis updated to use GHCR instead of docker.io

alexellis commented 3 years ago

Let's see if it worked? https://github.com/alexellis/derek/actions/runs/658244376

alexellis commented 3 years ago

And the release build -> https://github.com/alexellis/derek/actions/runs/658249877