Skip to content
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

Update dockerfile_bin to use ${GUILD_DEPLOY_BRANCH} instead of master #1730

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

TrevorBenson
Copy link
Collaborator

Description

Changes files/docker/node/dockerfile_bin to always rely on the GUILD_DEPLOY_BRANCH for the guild-deploy.sh file as well as the configuration files.

Where should the reviewer start?

Motivation and context

Changes merged altering config-mainnet.json to files/config/mainnet/config.json leads to failures to build the image. Can be observed in this job run.
Changing dockerfile_bin to use the GUILD_DEPLOY_BRANCH does work. It also ensures a container that is intended to test a specific set of changes obtains the addons, scripts, or entrypoint.sh for the container from the same branch intended for testing.

Which issue it fixes?

Didn't open an issue, just created the branch and tested the fix. Can open one if we want the PR to track closing an issue.

How has this been tested?

The working job from this branch can be observed in this job run.

@TrevorBenson TrevorBenson requested review from rdlrt and Scitz0 January 29, 2024 03:58
Copy link
Contributor

@rdlrt rdlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While updating this particular instance might be OK - these should not get published/tagged as latest docker images , as anything not on master is not tested in field yet - which should anyways be achieved using github workflow's branch tag (being master). Hence, approving

@rdlrt rdlrt merged commit bff19bc into alpha Jan 29, 2024
2 checks passed
@rdlrt rdlrt deleted the dockerfile_bin-use-guild-deploy-branch branch January 29, 2024 04:45
rdlrt pushed a commit that referenced this pull request Jan 29, 2024
…#1730)

## Description
Changes `files/docker/node/dockerfile_bin` to always rely on the
GUILD_DEPLOY_BRANCH for the `guild-deploy.sh` file as well as the
configuration files.

## Where should the reviewer start?


## Motivation and context
Changes merged altering `config-mainnet.json` to
`files/config/mainnet/config.json` leads to failures to build the image.
Can be observed in [this job
run](https://github.com/cardano-community/guild-operators/actions/runs/7690838700).
Changing `dockerfile_bin` to use the **GUILD_DEPLOY_BRANCH** does work.
It also ensures a container that is intended to test a specific set of
changes obtains the **addons**, **scripts**, or **entrypoint.sh** for
the container from the same branch intended for testing.


## Which issue it fixes?
Didn't open an issue, just created the branch and tested the fix. Can
open one if we want the PR to track closing an issue.

## How has this been tested?
The working job from this branch can be observed in [this job
run](https://github.com/cardano-community/guild-operators/actions/runs/7690854231).
@TrevorBenson
Copy link
Collaborator Author

While updating this particular instance might be OK - these should not get published/tagged as latest docker images , as anything not on master is not tested in field yet - which should anyways be achieved using github workflow's branch tag (being master). Hence, approving

Agreed. During an earlier change I put a "safety valve" in, so if the workflow runs, even if someone uses the workflow dispatch and does NOT set it to testing, if the branch isn't master it won't push a new image up to hub.docker.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants