-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.build | ||
*.yaml | ||
qemu-*-static |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
VERSION ?= 0.2.0 | ||
FULLVERSION ?= ${VERSION} | ||
archs = arm32v7 amd64 i386 | ||
.PHONY: all build publish latest version | ||
all: build publish | ||
build: | ||
cp /usr/bin/qemu-*-static . | ||
$(foreach arch,$(archs), \ | ||
cat Dockerfile | sed "s/FROM debian:stable-slim/FROM $(arch)\/debian:stable-slim/g" > .build; \ | ||
if [ $(arch) = arm32v7 ]; then \ | ||
docker build -t femtopixel/google-chrome-headless:${VERSION}-$(arch) -f .build --build-arg ISARM=1 .;\ | ||
else docker build -t femtopixel/google-chrome-headless:${VERSION}-$(arch) -f .build --build-arg ISARM=0 .;\ | ||
fi;\ | ||
) | ||
publish: | ||
docker push femtopixel/google-chrome-headless | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest2.yaml | ||
cat manifest2.yaml | sed "s/\$$FULLVERSION/${FULLVERSION}-debian/g" > manifest.yaml | ||
manifest-tool push from-spec manifest.yaml | ||
latest: build | ||
cat manifest.yml | sed "s/\$$VERSION/${VERSION}/g" > manifest2.yaml | ||
cat manifest2.yaml | sed "s/\$$FULLVERSION/latest/g" > manifest.yaml | ||
manifest-tool push from-spec manifest.yaml |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
image: femtopixel/google-chrome-headless:$FULLVERSION | ||
manifests: | ||
- | ||
image: femtopixel/google-chrome-headless:$VERSION-arm32v7 | ||
platform: | ||
architecture: arm | ||
variant: v7 | ||
os: linux | ||
- | ||
image: femtopixel/google-chrome-headless:$VERSION-i386 | ||
platform: | ||
architecture: 386 | ||
os: linux | ||
- | ||
image: femtopixel/google-chrome-headless:$VERSION-amd64 | ||
platform: | ||
architecture: amd64 | ||
os: linux |