-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build docker image using github actions #276
Conversation
925622c
to
acc7584
Compare
16d2505
to
37fa6a5
Compare
use the right sha?
9c27cda
to
68fafd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
DEFAULT_ETLHASH := stellar/stellar-etl:$(shell git rev-parse --short=9 HEAD) | ||
ETLHASH ?= $(DEFAULT_ETLHASH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious: why this was split into two vars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To support both versions - local build and github action build. If we use make docker-build
locally, it will use ETLHASH = DEFAULT_ETLHASH. Otherwise, for github action, ETLHASH is passed as override env variable from branch
stellar-etl/.github/workflows/build.yml
Line 28 in af9eaa8
ETLHASH: stellar/stellar-etl-dev:${SHORT_SHA} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, makes sense. Thanks 🙏
PR Checklist
PR Structure
otherwise).
Thoroughness
Release planning
semver, and I've changed the name of the BRANCH to release/_ , feature/_ or patch/* .
What
This PR adds a github workflow which can be triggered manually to build and push docker image from a branch. This workflow pushes image to stellar-etl-dev dockerhub repo.
Why
Currently developer executes
make-docker build
command locally to build docker image for testing and pushes to personal dockerhub accounts. The github action will help to keep consistency in dev experience. We can decide later if we would like to build image on certain commit message etcTested using airflow branch https://github.com/stellar/stellar-etl-airflow/pull/480/files
Known limitations
[TODO or N/A]