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

fix(ci): use commit SHA instead of PR number preview-env images #1501

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

aajimal
Copy link
Contributor

@aajimal aajimal commented Sep 13, 2024

Summary

Updates preview environment manifests to use the exact commit sha when referencing artifacts to deploy (docker images). Also adds links in the GUI back to the PR and commit.

Background

This is to ensure that any subsequent updates to a PR will always result in the preview env looking for the rebuilt image (tagged with full commit hash) rather than assuming a cached one might be valid (e.g. tagged with PR number).This change is in addition to setting the imagePullPolicy to Always to make the configuration explicit.

Changes

  • Update github action to tag docker images with the full commit hash

Testing

  • Manually tested by applying the preview environment manifests on dev cluster and creating a new PR to verify images were tagged correctly and that ArgoCD pulled the correct image.

@aajimal aajimal added the docker-build used to trigger docker builds on PRs label Sep 13, 2024
@github-actions github-actions bot added the cd label Sep 13, 2024
@aajimal aajimal added demo evm pertains to EVM sequencer pertaining to the astria-sequencer crate enhancement New feature or request infra preview and removed cd enhancement New feature or request demo labels Sep 13, 2024
@aajimal aajimal changed the title Update docker images to use commit SHA instead of PR number fix(ci): use commit SHA instead of PR number preview-env images Sep 13, 2024
@github-actions github-actions bot added the cd label Sep 13, 2024
@aajimal aajimal force-pushed the preview-env-template-values branch from 23cf3b1 to efc6d71 Compare September 13, 2024 04:13
@github-actions github-actions bot added the ci issues that are related to ci and github workflows label Sep 13, 2024
@aajimal aajimal force-pushed the preview-env-template-values branch 3 times, most recently from d4ae728 to 86e0b2e Compare September 13, 2024 05:11
@aajimal aajimal added infra sequencer pertaining to the astria-sequencer crate and removed infra sequencer pertaining to the astria-sequencer crate preview labels Sep 13, 2024
@aajimal aajimal force-pushed the preview-env-template-values branch 2 times, most recently from 1f5a982 to 103eeaf Compare September 18, 2024 19:05
@aajimal aajimal force-pushed the preview-env-template-values branch from 103eeaf to 59f70f2 Compare September 18, 2024 19:07
@aajimal aajimal marked this pull request as ready for review September 18, 2024 19:12
@aajimal aajimal requested a review from a team as a code owner September 18, 2024 19:12
@aajimal aajimal added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit eb466d9 Sep 18, 2024
48 checks passed
@aajimal aajimal deleted the preview-env-template-values branch September 18, 2024 19:28
steezeburger added a commit that referenced this pull request Sep 23, 2024
* main:
  feat(conductor): implement restart logic (#1463)
  fix: ignore `RUSTSEC-2024-0370` (#1483)
  fix, refactor(sequencer): refactor ics20 logic (#1495)
  fix(ci): use commit SHA instead of PR number preview-env images (#1501)
  chore(bridge-withdrawer): pass GRPC and CometBFT clients to consumers directly (#1510)
  fix(sequencer): Fix incorrect error message from BridgeUnlock actions (#1505)
  fix(bridge-contracts): fix memo transaction hash encoding (#1428)
  fix: build docker when workflow explicitly includes component (#1498)
  chore(sequencer): migrate from `anyhow::Result` to `eyre::Result` (#1387)
  fix(ci): typo for required field in sequencer preview-env (#1500)
  feat(ci): provide demo/preview environments (#1406)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cd ci issues that are related to ci and github workflows docker-build used to trigger docker builds on PRs evm pertains to EVM infra sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants