Skip to content

Commit

Permalink
feat(ci): wait for all images to be ready in E2E
Browse files Browse the repository at this point in the history
Copy from `update-argocd-metadata.yml`
  • Loading branch information
corneliusroemer committed Mar 5, 2024
1 parent 647a603 commit c588d3d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/e2e-k3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,57 @@ jobs:
with:
exec: ./deploy.py --verbose helm --branch ${{ github.ref_name }} --sha ${{ github.sha }} --dockerconfigjson ${{ secrets.GHCR_DOCKER_CONFIG }}

# Waits are identical to the update-argocd-metadata.yml file
# Mirror changes to that file
- name: Wait for Prepro Dummy Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: Preprocessing dummy docker image build
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2

- name: Wait for Config Processor Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: Build config-processor Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2

- name: Wait for Backend Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: Build Backend Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2

- name: Wait for Website Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: Build Website Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2

- name: Wait for Prepro Nextclade Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: Build preprocessing-nextclade Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2

- name: Wait for Keycloakify Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: Build keycloakify Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
# End of wait block

- name: Wait for the pods to be ready (timeout 480s)
run: ./.github/scripts/wait_for_pods_to_be_ready.py
- name: Sleep for 20 secs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-argocd-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: |
echo "sha=$(echo ${GITHUB_SHA} | cut -c1-7)" >> $GITHUB_OUTPUT
# Waits are identical to the e2e-k3d.yml workflow file
# Mirror changes to that file
- name: Wait for Prepro Dummy Docker Image
uses: lewagon/wait-on-check-action@v1.3.3
with:
Expand Down Expand Up @@ -75,6 +77,7 @@ jobs:
check-name: Build keycloakify Docker Image
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 2
# End of wait block

- name: Checkout External Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit c588d3d

Please sign in to comment.