|
|
|
@ -94,7 +94,10 @@ steps:
|
|
|
|
|
GCLOUD_AUTH: |
|
|
|
|
from_secret: gcloud_auth |
|
|
|
|
commands: |
|
|
|
|
- dapper -f Dockerfile.test.dapper |
|
|
|
|
- docker build --target test-k3s -t k3s:test-${DRONE_STAGE_ARCH}-${DRONE_COMMIT} -f Dockerfile.test . |
|
|
|
|
- > |
|
|
|
|
docker run -i -e REPO -e TAG -e DRONE_TAG -e DRONE_BUILD_EVENT -e IMAGE_NAME -e GCLOUD_AUTH -e SONOBUOY_VERSION -e ENABLE_REGISTRY |
|
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock --privileged --network host -v /tmp:/tmp k3s:test-${DRONE_STAGE_ARCH}-${DRONE_COMMIT} |
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
@ -190,7 +193,10 @@ steps:
|
|
|
|
|
GCLOUD_AUTH: |
|
|
|
|
from_secret: gcloud_auth |
|
|
|
|
commands: |
|
|
|
|
- dapper -f Dockerfile.test.dapper |
|
|
|
|
- docker build --target test-k3s -t k3s:test-${DRONE_STAGE_ARCH}-${DRONE_COMMIT} -f Dockerfile.test . |
|
|
|
|
- > |
|
|
|
|
docker run -i -e REPO -e TAG -e DRONE_TAG -e DRONE_BUILD_EVENT -e IMAGE_NAME -e GCLOUD_AUTH -e SONOBUOY_VERSION -e ENABLE_REGISTRY |
|
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock --privileged --network host -v /tmp:/tmp k3s:test-${DRONE_STAGE_ARCH}-${DRONE_COMMIT} |
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
@ -269,7 +275,10 @@ steps:
|
|
|
|
|
GCLOUD_AUTH: |
|
|
|
|
from_secret: gcloud_auth |
|
|
|
|
commands: |
|
|
|
|
- dapper -f Dockerfile.test.dapper |
|
|
|
|
- docker build --target test-k3s -t k3s:test-${DRONE_STAGE_ARCH}-${DRONE_COMMIT} -f Dockerfile.test . |
|
|
|
|
- > |
|
|
|
|
docker run -i -e REPO -e TAG -e DRONE_TAG -e DRONE_BUILD_EVENT -e IMAGE_NAME -e GCLOUD_AUTH -e SONOBUOY_VERSION -e ENABLE_REGISTRY |
|
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock --privileged --network host -v /tmp:/tmp k3s:test-${DRONE_STAGE_ARCH}-${DRONE_COMMIT} |
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
@ -365,7 +374,11 @@ steps:
|
|
|
|
|
GCLOUD_AUTH: |
|
|
|
|
from_secret: gcloud_auth |
|
|
|
|
commands: |
|
|
|
|
- dapper -f Dockerfile.test.dapper |
|
|
|
|
# we hardcode s390x as the arch because DRONE_STAGE_ARCH is set to amd64 |
|
|
|
|
- docker build --target test-k3s -t k3s:test-s390x-${DRONE_COMMIT} -f Dockerfile.test . |
|
|
|
|
- > |
|
|
|
|
docker run -i -e REPO -e TAG -e DRONE_TAG -e DRONE_BUILD_EVENT -e IMAGE_NAME -e GCLOUD_AUTH -e SONOBUOY_VERSION -e ENABLE_REGISTRY |
|
|
|
|
-v /var/run/docker.sock:/var/run/docker.sock --privileged --network host -v /tmp:/tmp k3s:test-s390x-${DRONE_COMMIT} |
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|
path: /var/run/docker.sock |
|
|
|
@ -387,7 +400,8 @@ steps:
|
|
|
|
|
- name: validate_go_mods |
|
|
|
|
image: rancher/dapper:v0.5.0 |
|
|
|
|
commands: |
|
|
|
|
- dapper -f Dockerfile.test.mod.dapper |
|
|
|
|
- docker build --target test-mods -t k3s:mod -f Dockerfile.test . |
|
|
|
|
- docker run -i k3s:mod |
|
|
|
|
|
|
|
|
|
volumes: |
|
|
|
|
- name: docker |
|
|
|
|