Skip to content

Commit

Permalink
OS-7532. Optional docker login in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-hystax authored May 6, 2024
1 parent afe61b1 commit 41edda7
Show file tree
Hide file tree
Showing 56 changed files with 392 additions and 168 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test_arcee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh arcee build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh auth build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_bi_exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out actions code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh bi_exporter build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_bi_scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh bi_scheduler build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_booking_observer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh booking_observer build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_bulldozer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh bulldozer build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_bumischeduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh bumischeduler build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_bumiworker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh bumiworker build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_calendar_observer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh calendar_observer build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_cleanelkdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh cleanelkdb build
10 changes: 7 additions & 3 deletions .github/workflows/test_cleaninfluxdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh cleaninfluxdb build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_cleanmongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh cleanmongodb build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_configurator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh configurator build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_demo_org_cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh demo_org_cleanup build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_diproxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh diproxy build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_diworker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh diworker build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_elk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh elk build
10 changes: 7 additions & 3 deletions .github/workflows/test_error_pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh error_pages build
10 changes: 7 additions & 3 deletions .github/workflows/test_etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh etcd build
10 changes: 7 additions & 3 deletions .github/workflows/test_failed_imports_dataset_generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh failed_imports_dataset_generator build
- name: Build test image and run tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test_gemini_scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh gemini_scheduler build
- name: Build test image and run tests
Expand Down
Loading

0 comments on commit 41edda7

Please sign in to comment.