Conversation
f201f55 to
df17997
Compare
|
Note Reviews pausedUse the following commands to manage reviews:
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a reusable GitHub Actions workflow that builds and pushes multi-architecture Docker images to GHCR, Google Artifact Registry, and Amazon ECR with computed tags (git-SHA, edge, semantic versions, latest), optional dry-run, caching, and Slack success notification; also adds README documentation referencing the workflow. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller as Caller (workflow_call / Manual)
participant Runner as GitHub Actions Runner
participant GHCR as GHCR
participant GAR as Google Artifact Registry
participant ECR as Amazon ECR
participant Slack as Slack
Caller->>Runner: invoke workflow with inputs & secrets
Runner->>Runner: ensure >=1 registry enabled
Runner->>Runner: derive platforms & compute tags
Runner->>Runner: setup QEMU & Buildx
alt GHCR enabled
Runner->>GHCR: authenticate (docker/login)
end
alt GAR enabled
Runner->>GAR: auth (WIF/service account) & docker/login
end
alt ECR enabled
Runner->>ECR: assume role / set creds & docker/login
end
Runner->>Runner: docker/build-push (context, dockerfile, platforms, tags, cache, dry-run)
par Push to enabled registries
Runner->>GHCR: push images
Runner->>GAR: push images
Runner->>ECR: push images
end
opt Success & contains "latest" & not dry-run
Runner->>Slack: send success notification
end
note over Runner: publish step summary with platforms, tags, registries
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Areas to pay extra attention:
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
Using build–in secrets.GITHUB_TOKEN. If we’ll ever need an option to use different token, we can introduce that in a non–breaking way. Resolves #26 (comment)
yeah, the registry actions I'm gonna try … and with the recent additions I can try and see if I could use the whole aciton |
We already run whole node with --input-type=module
Why?
Closes https://verkstedt.atlassian.net/browse/VIP-48
What?
Workflow that is triggered when new version tag or anything to main is pushed. It will build a docker image and depending on vars set in the repo (or org), will push it to different registries (GitHub Container Registry, Google Artifact Registry, Amazon ECR).
Review notes
Important
Remember this is a public repo. Do not discuss internal projects.
Testing
There’s a private test repo set up at https://github.com/verkstedt/actions--test it sends notifications to
#infrastructure-create-release-pr-actionslack channel.TODO before this is merged
@feat/docker-build-pushwith@v1TODO after this is merged
verkstedt/.githubrepo. Will look something like https://github.com/verkstedt/actions--test/blob/main/.github/workflows/docker-build-push.yamlreusable-tag-docker-release-imagesandreusable-releaseworkflows and remove them