From 807f6aa8a992d1868d2d0aed7f5857df3c5857e5 Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Tue, 29 Oct 2024 15:26:57 +0100 Subject: [PATCH] feat: add docker authentication (#816) Reverts ethpandaops/ethereum-package#701 Depends on https://github.com/kurtosis-tech/kurtosis/pull/2560 --- .github/workflows/nightly.yml | 10 ++++++++++ .github/workflows/per-pr.yml | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 5f9b600ad..2634976e2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -24,6 +24,11 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout Repository uses: actions/checkout@v4 - name: Setup Kurtosis @@ -63,6 +68,11 @@ jobs: assertoor-mix-assert: runs-on: ubuntu-latest steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout Repository uses: actions/checkout@v4 - name: Kurtosis Assertoor GitHub Action diff --git a/.github/workflows/per-pr.yml b/.github/workflows/per-pr.yml index 27a883298..0c66f5d34 100644 --- a/.github/workflows/per-pr.yml +++ b/.github/workflows/per-pr.yml @@ -11,6 +11,11 @@ jobs: run_starlark: runs-on: ubuntu-latest steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout Repository uses: actions/checkout@v4 - name: Setup Kurtosis @@ -22,6 +27,7 @@ jobs: - name: Run Starlark run: | + docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} kurtosis run ${{ github.workspace }} --args-file network_params.yaml run_with_args: @@ -39,6 +45,11 @@ jobs: ] runs-on: ubuntu-latest steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout Repository uses: actions/checkout@v4 - name: Setup Kurtosis @@ -50,6 +61,7 @@ jobs: - name: Run Starlark run: | + docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} kurtosis run ${{ github.workspace }} --args-file ${{ matrix.file_name }} lint: @@ -71,6 +83,11 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout Repository uses: actions/checkout@v4 - name: Kurtosis Assertoor GitHub Action