From b68ab2318d8c6ffff38b979394e28be52cb444be Mon Sep 17 00:00:00 2001 From: Wolfgang Schnerring Date: Wed, 24 Jan 2024 16:52:01 +0100 Subject: [PATCH] debug --- .github/workflows/nightwatch.yaml | 66 ++++++++++++++++++++++--------- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/.github/workflows/nightwatch.yaml b/.github/workflows/nightwatch.yaml index 43360f82b2..12360e3b72 100644 --- a/.github/workflows/nightwatch.yaml +++ b/.github/workflows/nightwatch.yaml @@ -14,23 +14,53 @@ on: jobs: build: - uses: zeitonline/gh-action-workflows/.github/workflows/nightwatch-build.yaml@1.9 - secrets: inherit - with: - versions: smoketest/k8s/base/versions - # copy&paste from k8s/base and k8s/staging manifest - args: | - --override-type=strategic --overrides="{\"spec\": { - \"serviceAccount\": \"baseproject\", - \"containers\": [{ - \"name\": \"nightwatch-test-$TAG\", - \"env\": [ - {\"name\": \"HTTPS_PROXY\", \"value\": \"http://static-ip-proxy.ops.zeit.de:3128\"}, - {\"name\": \"VIVI_XMLRPC_PASSWORD\", \"valueFrom\": {\"secretKeyRef\": { - \"name\": \"principals\", - \"key\": \"vivi_zeit.cms.principals_system.nightwatch\", - }}} - ] - ]} }" + runs-on: zon-ubuntu-general-dind + permissions: + id-token: write + contents: write + + steps: + - uses: ZeitOnline/gh-action-baseproject@v0 + with: + project_name: vivi + environment: staging + gke_auth: true + - run: | + export TAG=foo + which kubectl + kubectl config set-context --current --namespace=vivi + kubectl version + kubectl run wosctest --image=ubuntu:22.04 --restart=Never --override-type=strategic --overrides="{\"spec\": { + \"serviceAccount\": \"baseproject\", + \"containers\": [{ + \"name\": \"nightwatch-test-$TAG\", + \"env\": [ + {\"name\": \"HTTPS_PROXY\", \"value\": \"http://static-ip-proxy.ops.zeit.de:3128\"}, + {\"name\": \"VIVI_XMLRPC_PASSWORD\", \"valueFrom\": {\"secretKeyRef\": { + \"name\": \"principals\", + \"key\": \"vivi_zeit.cms.principals_system.nightwatch\", + }}} + ] + ]} }" + + + # uses: zeitonline/gh-action-workflows/.github/workflows/nightwatch-build.yaml@1.9 + # secrets: inherit + # with: + # versions: smoketest/k8s/base/versions + # # copy&paste from k8s/base and k8s/staging manifest + # args: | + # --override-type=strategic --overrides="{\"spec\": { + # \"serviceAccount\": \"baseproject\", + # \"containers\": [{ + # \"name\": \"nightwatch-test-$TAG\", + # \"env\": [ + # {\"name\": \"HTTPS_PROXY\", \"value\": \"http://static-ip-proxy.ops.zeit.de:3128\"}, + # {\"name\": \"VIVI_XMLRPC_PASSWORD\", \"valueFrom\": {\"secretKeyRef\": { + # \"name\": \"principals\", + # \"key\": \"vivi_zeit.cms.principals_system.nightwatch\", + # }}} + # ] + # ]} }" # deploy happens via flux (on `main` branch)