Skip to content

Commit 9ecbe69

Browse files
JakeSCahillDeflaimun
authored andcommitted
Update tests to use unstable repos during beta
1 parent 78c9c51 commit 9ecbe69

File tree

13 files changed

+112
-45
lines changed

13 files changed

+112
-45
lines changed

.github/workflows/test-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
with:
3737
token: ${{ secrets.GITHUB_TOKEN }}
3838
path: redpanda-docs
39+
# Run tests on beta if the PR is targeting a branch that starts with 'v-WIP'
40+
- name: Test WIP Branch Docs
41+
if: startsWith(github.head_ref, 'v-WIP')
42+
run: |
43+
echo "BETA='true'" >> $GITHUB_ENV
3944
- name: Test docs
4045
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }}
4146
uses: doc-detective/github-action@v1
3 KB
Loading
-300 Bytes
Loading

modules/console/images/license.png

8.25 KB
Loading
-4.21 KB
Loading
201 Bytes
Loading

modules/console/images/topic.png

-1012 Bytes
Loading

modules/console/images/user.png

-54 Bytes
Loading

modules/console/pages/quickstart.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ include::console:attachment$transactions-schema.json[]
7777
```bash
7878
docker compose up -d --wait
7979
```
80-
// (step {"action":"runShell", "command": "docker pull docker.redpanda.com/redpandadata/redpanda:v${REDPANDA_VERSION:?Set a Redpanda version} && docker pull docker.redpanda.com/redpandadata/console:v${REDPANDA_CONSOLE_VERSION:?Set a Redpanda Console version} && docker pull docker.redpanda.com/redpandadata/connect:latest", "workingDirectory": "../test-resources", "timeout": 100000, "exitCodes": [0,1]})
80+
// (step {"action":"runShell", "command": "docker pull docker.redpanda.com/redpandadata/${REDPANDA_DOCKER_REPO:-redpanda}:${REDPANDA_VERSION:-latest} && docker pull docker.redpanda.com/redpandadata/${CONSOLE_DOCKER_REPO:-console}:${REDPANDA_CONSOLE_VERSION:-latest} && docker pull docker.redpanda.com/redpandadata/connect:latest", "workingDirectory": "../test-resources", "timeout": 100000, "exitCodes": [0,1]})
8181
// (step {"action":"runShell", "command": "docker compose up -d --wait", "workingDirectory": "../test-resources", "timeout": 50000, "exitCodes": [0,1]})
8282
// (step {"action":"wait", "duration": 10000})
8383
+

modules/console/test-resources/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
# Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system.
3434
- --smp 1
3535
- --default-log-level=info
36-
image: docker.redpanda.com/redpandadata/redpanda:v${REDPANDA_VERSION:?Set a Redpanda version}
36+
image: docker.redpanda.com/redpandadata/${REDPANDA_DOCKER_REPO}:${REDPANDA_VERSION:-latest}
3737
container_name: redpanda-0
3838
# Sets the username and password of the SCRAM superuser
3939
environment:
@@ -68,7 +68,7 @@ services:
6868
- --smp 1
6969
- --default-log-level=info
7070
- --seeds redpanda-0:33145
71-
image: docker.redpanda.com/redpandadata/redpanda:v${REDPANDA_VERSION:?Set a Redpanda version}
71+
image: docker.redpanda.com/redpandadata/${REDPANDA_DOCKER_REPO:-redpanda}:${REDPANDA_VERSION:-latest}
7272
container_name: redpanda-1
7373
environment:
7474
RP_BOOTSTRAP_USER: "superuser:secretpassword"
@@ -99,7 +99,7 @@ services:
9999
- --smp 1
100100
- --default-log-level=info
101101
- --seeds redpanda-0:33145
102-
image: docker.redpanda.com/redpandadata/redpanda:v${REDPANDA_VERSION:?Set a Redpanda version}
102+
image: docker.redpanda.com/redpandadata/${REDPANDA_DOCKER_REPO:-redpanda}:${REDPANDA_VERSION:?Set a Redpanda version}
103103
container_name: redpanda-2
104104
environment:
105105
RP_BOOTSTRAP_USER: "superuser:secretpassword"
@@ -120,7 +120,7 @@ services:
120120
####################
121121
console:
122122
container_name: redpanda-console
123-
image: docker.redpanda.com/redpandadata/console:v${REDPANDA_CONSOLE_VERSION:?Set a Redpanda Console version}
123+
image: docker.redpanda.com/redpandadata/${CONSOLE_DOCKER_REPO:-console}:${REDPANDA_CONSOLE_VERSION:-latest}
124124
networks:
125125
- redpanda_network
126126
entrypoint: /bin/sh
@@ -235,7 +235,7 @@ services:
235235
- -X user=superuser
236236
- -X pass=secretpassword
237237
- -X registry.hosts=redpanda-0:8081
238-
image: docker.redpanda.com/redpandadata/redpanda:v${REDPANDA_VERSION:?Set a Redpanda version}
238+
image: docker.redpanda.com/redpandadata/${REDPANDA_DOCKER_REPO:-redpanda}:${REDPANDA_VERSION:-latest}
239239
# mount the local directory that contains your schema to the container.
240240
volumes:
241241
- ./transactions-schema.json:/etc/redpanda/transactions-schema.json

0 commit comments

Comments
 (0)