Check for existing tag in remote repo before building. #764

Merged
telackey merged 14 commits from telackey/remotetag into main 2024-02-24 03:22:51 +00:00
Member

webapps are meant to be build-once/deploy-many, but we were rebuilding them for every request. This changes that, so that we rebuild only for every unique ApplicationRecord.

When we push the image, we now tag it according to its ApplicationRecord.

We don't want to use that tag directly in the compose file for the deployment, however, as the deployment needs to be able to adjust to new builds w/o re-writing the file all the time. Instead, we use a per-deployment unique tag (same as before), we just update what image it references as needed.

webapps are meant to be build-once/deploy-many, but we were rebuilding them for every request. This changes that, so that we rebuild only for every unique ApplicationRecord. When we push the image, we now tag it according to its ApplicationRecord. We don't want to use that tag directly in the compose file for the deployment, however, as the deployment needs to be able to adjust to new builds w/o re-writing the file all the time. Instead, we use a per-deployment unique tag (same as before), we just update what image it references as needed.
telackey added 1 commit 2024-02-23 20:38:06 +00:00
WIP: Check for existing tag in remote repo before building.
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 24s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m33s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 6m30s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m34s
Smoke Test / Run basic test suite (pull_request) Successful in 3m44s
2d8cc09e6f
telackey added 1 commit 2024-02-23 21:22:25 +00:00
refactor
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 47s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m35s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 12m38s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m6s
Smoke Test / Run basic test suite (pull_request) Successful in 5m50s
2a34f43678
telackey added 2 commits 2024-02-24 00:02:20 +00:00
Remote tag check
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 53s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m59s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 6m55s
Deploy Test / Run deploy test suite (pull_request) Successful in 7m0s
Smoke Test / Run basic test suite (pull_request) Successful in 3m38s
f06b5ec6a2
telackey added 1 commit 2024-02-24 00:06:20 +00:00
lint
Some checks failed
Lint Checks / Run linter (pull_request) Failing after 33s
Smoke Test / Run basic test suite (pull_request) Successful in 3m43s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m55s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m51s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m4s
d8f5d41261
telackey added 1 commit 2024-02-24 00:52:45 +00:00
Working
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 55s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m19s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m21s
Smoke Test / Run basic test suite (pull_request) Successful in 5m24s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 6m29s
b0d003cc01
telackey added 1 commit 2024-02-24 00:59:52 +00:00
Add comment.
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 52s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m9s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m15s
Smoke Test / Run basic test suite (pull_request) Successful in 5m30s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m0s
61d254cd6c
telackey changed title from WIP: Check for existing tag in remote repo before building. to Check for existing tag in remote repo before building. 2024-02-24 01:00:23 +00:00
telackey requested review from dboreham 2024-02-24 01:37:29 +00:00
telackey added 1 commit 2024-02-24 01:41:09 +00:00
Refactor
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 29s
Webapp Test / Run webapp test suite (pull_request) Successful in 2m53s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m16s
Smoke Test / Run basic test suite (pull_request) Successful in 2m50s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m11s
3194ebf8a6
telackey added 1 commit 2024-02-24 01:53:03 +00:00
push-images will only use the compose-defined tag
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 26s
Smoke Test / Run basic test suite (pull_request) Successful in 2m59s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m19s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m9s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m44s
a54e9c43a0
telackey added 1 commit 2024-02-24 01:53:44 +00:00
comment
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 26s
Deploy Test / Run deploy test suite (pull_request) Successful in 4m35s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m2s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 6m13s
Smoke Test / Run basic test suite (pull_request) Successful in 3m1s
8efe753ca4
telackey added 1 commit 2024-02-24 01:54:07 +00:00
fmt
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 38s
Webapp Test / Run webapp test suite (pull_request) Successful in 3m11s
Smoke Test / Run basic test suite (pull_request) Successful in 2m50s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m30s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 9m20s
f27248b508
telackey added 1 commit 2024-02-24 02:54:13 +00:00
logging
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 25s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m0s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 5m33s
Smoke Test / Run basic test suite (pull_request) Successful in 3m14s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m22s
694590ed56
telackey added 1 commit 2024-02-24 02:58:41 +00:00
refactor
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 34s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m17s
Webapp Test / Run webapp test suite (pull_request) Successful in 3m25s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 6m20s
Smoke Test / Run basic test suite (pull_request) Successful in 4m58s
39bf0e2795
telackey added 1 commit 2024-02-24 03:20:41 +00:00
Merge branch 'main' into telackey/remotetag
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 49s
Webapp Test / Run webapp test suite (pull_request) Failing after 2m22s
Deploy Test / Run deploy test suite (pull_request) Successful in 6m55s
Smoke Test / Run basic test suite (pull_request) Successful in 2m52s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Failing after 8m19s
d38d1f192c
telackey merged commit a0413659f7 into main 2024-02-24 03:22:51 +00:00
telackey deleted branch telackey/remotetag 2024-02-24 03:22:51 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#764
No description provided.