Skip to content

Commit

Permalink
Remove build artifacts from repository
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <[email protected]>
  • Loading branch information
kvaps committed Aug 7, 2024
1 parent 96f96a7 commit a686377
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 73 deletions.
22 changes: 12 additions & 10 deletions packages/apps/kubernetes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ generate:
image: image-ubuntu-container-disk

image-ubuntu-container-disk:
docker buildx build --platform linux/amd64 --build-arg ARCH=amd64 images/ubuntu-container-disk \
--provenance false \
--tag $(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG)) \
--tag $(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG)-$(TAG)) \
--cache-from type=registry,ref=$(REGISTRY)/ubuntu-container-disk:latest \
--cache-to type=inline \
--metadata-file images/ubuntu-container-disk.json \
--push=$(PUSH) \
--load=$(LOAD)
echo "$(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG))" > images/ubuntu-container-disk.tag
#docker buildx build --platform linux/amd64 --build-arg ARCH=amd64 images/ubuntu-container-disk \
# --provenance false \
# --tag $(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG)) \
# --tag $(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG)-$(TAG)) \
# --cache-from type=registry,ref=$(REGISTRY)/ubuntu-container-disk:latest \
# --cache-to type=inline \
# --metadata-file images/ubuntu-container-disk.json \
# --push=$(PUSH) \
# --load=$(LOAD)
echo "$(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG))@$$(yq e '."containerimage.digest"' images/ubuntu-container-disk.json -o json -r)" \
> images/ubuntu-container-disk.tag
#rm -f images/ubuntu-container-disk.json
2 changes: 1 addition & 1 deletion packages/apps/kubernetes/images/ubuntu-container-disk.tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ghcr.io/aenix-io/cozystack/ubuntu-container-disk:v1.30.1
ghcr.io/aenix-io/cozystack/ubuntu-container-disk:latest@sha256:81caf89efe252ae2ca1990d08a3a314552d70ff36bcd4022b173c7150fbec805
2 changes: 1 addition & 1 deletion packages/apps/kubernetes/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ spec:
volumes:
- name: system
containerDisk:
image: "{{ $.Files.Get "images/ubuntu-container-disk.tag" | trim }}@{{ index ($.Files.Get "images/ubuntu-container-disk.json" | fromJson) "containerimage.digest" }}"
image: "{{ $.Files.Get "images/ubuntu-container-disk.tag" | trim }}"
- name: ephemeral
emptyDisk:
capacity: {{ .group.ephemeralStorage | default "20Gi" }}
Expand Down
5 changes: 3 additions & 2 deletions packages/core/installer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ image-cozystack:
--metadata-file images/cozystack.json \
--push=$(PUSH) \
--load=$(LOAD)
echo "$(REGISTRY)/cozystack:$(call settag,$(TAG))" > images/cozystack.tag
IMAGE="$(REGISTRY)/cozystack:$(call settag,$(TAG))@$$(yq e '."containerimage.digest"' images/cozystack.json -o json -r)" \
yq -i '.cozystack.image = strenv(IMAGE)' values.yaml
rm -f images/cozystack.json

image-talos:
test -f ../../../_out/assets/installer-amd64.tar || make talos-installer
Expand All @@ -50,7 +52,6 @@ image-matchbox:
--metadata-file images/matchbox.json \
--push=$(PUSH) \
--load=$(LOAD)
echo "$(REGISTRY)/matchbox:$(call settag,$(TALOS_VERSION))" > images/matchbox.tag

assets: talos-iso talos-nocloud

Expand Down
10 changes: 0 additions & 10 deletions packages/core/installer/images/cozystack.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/installer/images/cozystack.tag

This file was deleted.

45 changes: 0 additions & 45 deletions packages/core/installer/images/matchbox.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/core/installer/images/matchbox.tag

This file was deleted.

4 changes: 2 additions & 2 deletions packages/core/installer/templates/cozystack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
serviceAccountName: cozystack
containers:
- name: cozystack
image: "{{ .Files.Get "images/cozystack.tag" | trim }}@{{ index (.Files.Get "images/cozystack.json" | fromJson) "containerimage.digest" }}"
image: "{{ .Values.cozystack.image }}"
env:
- name: KUBERNETES_SERVICE_HOST
value: localhost
Expand All @@ -68,7 +68,7 @@ spec:
fieldRef:
fieldPath: metadata.name
- name: darkhttpd
image: "{{ .Files.Get "images/cozystack.tag" | trim }}@{{ index (.Files.Get "images/cozystack.json" | fromJson) "containerimage.digest" }}"
image: "{{ .Values.cozystack.image }}"
command:
- /usr/bin/darkhttpd
- /cozystack/assets
Expand Down
2 changes: 2 additions & 0 deletions packages/core/installer/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cozystack:
image: ghcr.io/aenix-io/cozystack/cozystack:latest@sha256:b92988122fa68adc85751384170a46895b5761cc5bf27e80b0b53b12b89b6d6c

0 comments on commit a686377

Please sign in to comment.