Skip to content

Commit 14f935a

Browse files
committed
adds blueprint to event db
1 parent 3580aa6 commit 14f935a

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

Earthfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ all:
9292
END
9393

9494
# Build and tag all Docker images
95-
BUILD ./containers/event-db-migrations+publish --tag=$tag --registry=$registry_final
95+
BUILD ./containers/event-db-migrations+package --tag=$tag --registry=$registry_final
9696

9797
# Build crate images from the workspace
9898
BUILD ./src/jormungandr/jormungandr+docker --tag=$tag --registry=$registry_final
@@ -147,7 +147,7 @@ tag-workspace:
147147

148148
local:
149149
LOCALLY
150-
BUILD ./containers/event-db-migrations+publish
150+
BUILD ./containers/event-db-migrations+package
151151
BUILD ./src/cat-data-service+publish
152152
BUILD ./services/voting-node+package
153153

containers/event-db-migrations/Earthfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212
SAVE ARTIFACT ./bin/refinery refinery
1313
SAVE IMAGE --cache-hint
1414

15-
publish:
15+
package:
1616
FROM debian:stable-slim
1717
ARG tag="latest"
1818
ARG data="historic"
@@ -63,3 +63,11 @@ publish:
6363
# --load test:latest=+docker
6464
# RUN docker run test:latest
6565
# END
66+
67+
docker:
68+
FROM +package
69+
70+
ARG container='voting-node'
71+
ARG tag="latest"
72+
73+
SAVE IMAGE ${container}:${tag}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "1.0.0"
2+
project: {
3+
name: "event-db-migrations"
4+
release: {
5+
docker: {
6+
on: {
7+
merge: {}
8+
tag: {}
9+
}
10+
config: {
11+
tag: _ @forge(name="GIT_HASH_OR_TAG")
12+
}
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)