Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mull committed Jan 21, 2022
1 parent 54aa902 commit 8c883df
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 7 deletions.
8 changes: 8 additions & 0 deletions custom-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DOCKERFILE=$1

docker buildx build \
--platform linux/amd64 \
--tag $IMAGE \
--push \
--file $DOCKERFILE \
$BUILD_CONTEXT
5 changes: 5 additions & 0 deletions packages/tests/custom-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker buildx build \
--platform linux/amd64 \
--tag $IMAGE \
--push \
$BUILD_CONTEXT
10 changes: 10 additions & 0 deletions packages/tests/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ build:
artifacts:
- image: netnodse/dns-zonemaster
context: tests/zonemaster/
custom:
buildCommand: ../../custom-build.sh
- image: netnodse/ipv6-dns
context: tests/ipv6-dns/
custom:
buildCommand: ../../custom-build.sh
- image: netnodse/https-reachable
context: tests/https/
custom:
buildCommand: ../../custom-build.sh
- image: netnodse/hsts
context: tests/hsts/
custom:
buildCommand: ../../custom-build.sh
- image: netnodse/ipv6-connectivity
context: tests/ipv6-connectivity
custom:
buildCommand: ../../custom-build.sh
5 changes: 5 additions & 0 deletions packages/tests/tests/zonemaster/custom-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker buildx build \
--platform linux/amd64 \
--tag $IMAGE \
--push \
$BUILD_CONTEXT
14 changes: 7 additions & 7 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ deploy:
namespace: dev
---
# Deploy services after
apiVersion: skaffold/v2beta13
apiVersion: skaffold/v2beta26
kind: Config
metadata:
name: robust-tjanst
build:
artifacts:
- image: netnodse/robust-web
docker:
dockerfile: Dockerfile.web
custom:
buildCommand: ./custom-build.sh Dockerfile.web
- image: netnodse/robust-admin
docker:
dockerfile: Dockerfile.admin
custom:
buildCommand: ./custom-build.sh Dockerfile.admin
- image: netnodse/robust-test-runner
docker:
dockerfile: Dockerfile.tests
custom:
buildCommand: ./custom-build.sh Dockerfile.tests
deploy:
kubectl:
defaultNamespace: dev
Expand Down

0 comments on commit 8c883df

Please sign in to comment.