Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wosc committed Jan 24, 2024
1 parent 28be248 commit b68ab23
Showing 1 changed file with 48 additions and 18 deletions.
66 changes: 48 additions & 18 deletions .github/workflows/nightwatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,53 @@ on:

jobs:
build:
uses: zeitonline/gh-action-workflows/.github/workflows/[email protected]
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/[email protected]
# 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)

0 comments on commit b68ab23

Please sign in to comment.