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 7, 2025
1 parent 833575f commit 7c7c27f
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/tests-cluster-chainsaw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,25 @@ on:

jobs:
test-list:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
outputs:
tests: ${{ steps.listTests.outputs.tests }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@4
with:
fetch-depth: 1
- id: listTests
run: |
echo "tests=$(ls charts/cluster/test -1 | jq -cRn '{ include: [inputs | { test: "\(.)" }]}')" >> $GITHUB_OUTPUT
test:
needs: test-list
runs-on: ubuntu-24.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 7c7c27f

Please sign in to comment.