ci: Docker Hub build & publish for dicoop/blockchain #1
Reference in New Issue
Block a user
Delete Branch "feat/docker-publish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.cicd/Dockerfile.publish— multi-stage Dockerfile (builder + slim runtime) for producing thedicoop/blockchainimage without build artefacts. Builder compiles blockchain (this repo) and CDT (passed via--build-context), runtime keeps only/usr/local..github/workflows/docker-publish.yamlis not yet in this PR because the OAuth token used for the push lacked theworkflowscope. Will be added in a follow-up commit (or via GitHub UI on this branch).Workflow plan (file content already drafted locally)
push tags v*and manualworkflow_dispatchwith inputscdt-ref(defaultv4.2.0),version-tag,push-latest.docker/build-push-action@v6withcache-from/to: type=ghato keep rebuilds incremental.dicoop/blockchain:<tag>(and:latest) to Docker Hub usingDOCKERHUB_USERNAME/DOCKERHUB_TOKENsecrets.ubuntu-latest, frees disk before build.Test plan
workflowscope).workflow_dispatchand pushes a test image.v5.2.0to trigger an automatic run end-to-end.