Skip to content

Commit

Permalink
Swap to Vars for DOCKERHUB_USERNAME
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
philippemnoel committed Feb 6, 2025
1 parent 5adcb1c commit 8b6babf
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/tests-cluster-chainsaw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test-list:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
outputs:
tests: ${{ steps.listTests.outputs.tests }}
steps:
Expand All @@ -18,29 +18,14 @@ jobs:
- id: listTests
run: |
echo "tests=$(ls charts/cluster/test -1 | jq -cRn '{ include: [inputs | { test: "\(.)" }]}')" >> $GITHUB_OUTPUT
test:
needs: test-list
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.test-list.outputs.tests) }}
name: ${{matrix.test}}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- id: listTests
run: |
echo "tests=$(ls charts/paradedb/test -1 | jq -cRn '{ include: [inputs | { test: "\(.)" }]}')" >> $GITHUB_OUTPUT
test:
needs: test-list
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.test-list.outputs.tests) }}

name: ${{ matrix.test }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -54,7 +39,7 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

# Added by ParadeDB: Always pull the latest version of paradedb/paradedb
Expand Down Expand Up @@ -110,5 +95,5 @@ jobs:
- name: Run Kyverno/Chainsaw
run: chainsaw test charts/paradedb/test/${{ matrix.test }}
env:
PARADEDB_ENTERPRISE_DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
PARADEDB_ENTERPRISE_DOCKER_USERNAME: ${{ vars.DOCKERHUB_USERNAME }}
PARADEDB_ENTERPRISE_DOCKER_PAT: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

0 comments on commit 8b6babf

Please sign in to comment.