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

Combine docker deploy workflows #3701

Conversation

danield9tqh
Copy link
Member

@danield9tqh danield9tqh commented Mar 27, 2023

Summary

We currently have 3 docker deploy workflows when running a release. Each of these builds the docker image separately (which is a lengthy process) and then pushes to the respective docker registry (AWS, GHCR). Combining all 3 into one with options will allow us to only build the docker image once.

This PR is also updating the canonical docker tag names for releases. Previously there was only one docker tag (latest) which every production node pulled from. In this PR we are adding mainnet and testnet docker tags to distinguish between the two networks after mainnet launch.

Screenshot 2023-03-27 at 3 34 06 PM

Testing Plan

Tested running the actions on a branch uploading to AWS

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@danield9tqh danield9tqh requested a review from a team as a code owner March 27, 2023 22:12
@danield9tqh danield9tqh changed the base branch from master to staging March 27, 2023 22:14

# Used if we are deploying a new version (e.g. v1.1)
# This is only executed when deploying a new release to mainnet
- name: Deploy Node Image to GitHub:${{ github.ref_name }}
Copy link
Contributor

Choose a reason for hiding this comment

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

What does github.ref_name refer to if this is triggered by workflow_dispatch?

Copy link
Contributor

Choose a reason for hiding this comment

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

good question

Copy link
Contributor

Choose a reason for hiding this comment

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

Chatted with Daniel

the branch is always an input to workflow_dispatch, so this will refer to the branch that you run the workflow from

@danield9tqh danield9tqh merged commit bce6b5d into iron-fish:staging Mar 28, 2023
@danield9tqh danield9tqh deleted the daniel/ifl-283-make-single-github-action-for-deploying branch March 28, 2023 00:45
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.

3 participants