kube-rs / controller-rs

A kubernetes reference controller with actix-web
Apache License 2.0
282 stars 27 forks source link

docker push on ci is not pushing with correct tags #58

Open clux opened 1 year ago

clux commented 1 year ago

The GHA docker-metadata action is meant to infer tags in https://github.com/kube-rs/controller-rs/blob/09ace63c3b7a6b7a0e695f118581660eaddd97e3/.github/workflows/ci.yml#L19-L27 via docker-metadata pep440.

but as can be seen in the last job it outputs:

Processing tags input
  type=pep440,pattern={{version}},prefix=otel-,value=,enable=true,priority=900
  type=ref,event=pr,prefix=otel-,enable=true,priority=600
  type=raw,value=otel,enable={{is_default_branch}},priority=200
Processing flavor input
  latest=auto
  prefix=
  prefixLatest=false
  suffix=
  suffixLatest=false
Docker image version
  otel

which means the e2e ci which is meant to test the built image from the chart fails.

I think this could be because we are not running the job in response to a tag push, but instead as a normal build. but there's also the bad ordering setup currently: https://github.com/kube-rs/controller-rs/actions/runs/5814041092

we run docker-base which is depended on by e2e, but the e2e job does a kubectl apply on the helm output (which is always using the last version).

not sure i have enough time to fix this today and likely off for a week so rough plan:

future long term

clux commented 1 year ago

setting ci to build on tag '*' started https://github.com/kube-rs/controller-rs/actions/runs/5825727115/job/15797966094 which actually computed correct tags EDIT: it still didn't actually push the semver tag though wtf