Skip to content

Commit

Permalink
Add release date/time to package definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamDumpleton committed Jun 22, 2022
1 parent 03f8e27 commit 73c60a6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ jobs:
ytt -f carvel-packages/cluster-essentials/config/package.yaml \
-f carvel-packages/training-platform/config/schema.yaml \
-v version=${{env.REPOSITORY_TAG}} \
-v releasedAt=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
-v imageRegistry.host=ghcr.io \
-v imageRegistry.namespace=${{github.repository_owner}} > educates-cluster-essentials.yaml
Expand Down Expand Up @@ -243,6 +244,7 @@ jobs:
ytt -f carvel-packages/training-platform/config/package.yaml \
-f carvel-packages/training-platform/config/schema.yaml \
-v version=${{env.REPOSITORY_TAG}} \
-v releasedAt=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
-v imageRegistry.host=ghcr.io \
-v imageRegistry.namespace=${{github.repository_owner}} > educates-training-platform.yaml
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ push-cluster-essentials-bundle:
ytt -f carvel-packages/cluster-essentials/bundle/config | kbld -f - --imgpkg-lock-output carvel-packages/cluster-essentials/bundle/.imgpkg/images.yml
imgpkg push -b $(IMAGE_REPOSITORY)/educates-cluster-essentials:$(RELEASE_VERSION) -f carvel-packages/cluster-essentials/bundle
mkdir -p testing
ytt -f carvel-packages/cluster-essentials/config/package.yaml -f carvel-packages/cluster-essentials/config/schema.yaml -v imageRegistry.host=$(IMAGE_REPOSITORY) -v version=$(RELEASE_VERSION) > testing/educates-cluster-essentials.yaml
ytt -f carvel-packages/cluster-essentials/config/package.yaml -f carvel-packages/cluster-essentials/config/schema.yaml -v imageRegistry.host=$(IMAGE_REPOSITORY) -v version=$(RELEASE_VERSION) -v releasedAt=`date -u +"%Y-%m-%dT%H:%M:%SZ"` > testing/educates-cluster-essentials.yaml

deploy-cluster-essentials:
ifneq ("$(wildcard testing/values.yaml)","")
Expand Down Expand Up @@ -129,7 +129,7 @@ push-training-platform-bundle:
cat carvel-packages/training-platform/bundle/kbld-images.yaml | kbld -f - --imgpkg-lock-output carvel-packages/training-platform/bundle/.imgpkg/images.yml
imgpkg push -b $(IMAGE_REPOSITORY)/educates-training-platform:$(RELEASE_VERSION) -f carvel-packages/training-platform/bundle
mkdir -p testing
ytt -f carvel-packages/training-platform/config/package.yaml -f carvel-packages/training-platform/config/schema.yaml -v imageRegistry.host=$(IMAGE_REPOSITORY) -v version=$(RELEASE_VERSION) > testing/educates-training-platform.yaml
ytt -f carvel-packages/training-platform/config/package.yaml -f carvel-packages/training-platform/config/schema.yaml -v imageRegistry.host=$(IMAGE_REPOSITORY) -v version=$(RELEASE_VERSION) -v releasedAt=`date -u +"%Y-%m-%dT%H:%M:%SZ"` > testing/educates-training-platform.yaml

deploy-training-platform:
ifneq ("$(wildcard testing/values.yaml)","")
Expand Down
7 changes: 0 additions & 7 deletions carvel-packages/cluster-essentials/bundle/.imgpkg/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,4 @@ images:
tag: v1.20.1
url: ghcr.io/projectcontour/contour:v1.20.1
image: ghcr.io/projectcontour/contour@sha256:6e6c6cbe03eba0df8987da4cac2712845f66c496185383d8768f19b40be26125
- annotations:
kbld.carvel.dev/id: metacontrollerio/metacontroller:v4.2.0
kbld.carvel.dev/origins: |
- resolved:
tag: v4.2.0
url: metacontrollerio/metacontroller:v4.2.0
image: index.docker.io/metacontrollerio/metacontroller@sha256:e28e2e18ad4ef8299b9c399dd5d4679b3bea8383a28460efbee10151e90c4cc5
kind: ImagesLock
1 change: 1 addition & 0 deletions carvel-packages/cluster-essentials/config/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
spec:
refName: cluster-essentials.educates.dev
version: #@ data.values.version
releasedAt: #@ data.values.releasedAt
template:
spec:
fetch:
Expand Down
2 changes: 2 additions & 0 deletions carvel-packages/cluster-essentials/config/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ version: latest
imageRegistry:
host: "localhost:5001"
namespace: ""

releasedAt: ""
1 change: 1 addition & 0 deletions carvel-packages/training-platform/config/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
spec:
refName: training-platform.educates.dev
version: #@ data.values.version
releasedAt: #@ data.values.releasedAt
template:
spec:
fetch:
Expand Down
2 changes: 2 additions & 0 deletions carvel-packages/training-platform/config/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ version: latest
imageRegistry:
host: "localhost:5001"
namespace: ""

releasedAt: ""

0 comments on commit 73c60a6

Please sign in to comment.