-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, this needed to rollback node image to 18 due to nodejs/docker-node#1829 This may have implications on #3. The image still install latest available eleventy from NPM, so each beta build is just another latest stable. This issue is due to process between github-release-notifier and eleventy team making a tag on github on each beta build. This should be handled by github-release-notifier
- Loading branch information
Showing
7 changed files
with
15 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
.build | ||
site | ||
manifest.yaml | ||
.Dockerfile | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
VERSION ?= v3.0.0-alpha.10 | ||
FULLVERSION ?= v3.0.0-alpha.10 | ||
CACHE ?= --no-cache=1 | ||
.PHONY: all build publish latest | ||
archs ?= amd64 arm64v8 arm32v6 | ||
all: build publish latest | ||
qemu-arm-static: | ||
cp /usr/bin/qemu-arm-static . | ||
qemu-aarch64-static: | ||
cp /usr/bin/qemu-aarch64-static . | ||
build: qemu-aarch64-static qemu-arm-static | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM node/FROM ${arch}\/node/g" > .Dockerfile; \ | ||
docker build -t femtopixel/eleventy:${VERSION}-$(arch) --build-arg VERSION=${VERSION}-$(arch) ${CACHE} -f .Dockerfile .;\ | ||
) | ||
publish: | ||
docker push femtopixel/eleventy -a | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest.yaml | ||
cat manifest.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}/g" > manifest2.yaml | ||
mv manifest2.yaml manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: | ||
FULLVERSION=latest VERSION=${VERSION} make publish | ||
|
||
.PHONY: all build publish | ||
all: build publish | ||
build: | ||
docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64 ${PUSH} --tag femtopixel/eleventy --tag femtopixel/eleventy:${VERSION} ${CACHE} . | ||
publish: | ||
PUSH=--push CACHE= make build |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.