Skip to content

Commit

Permalink
Wait for docker image artifact within the download action
Browse files Browse the repository at this point in the history
  • Loading branch information
e-mit committed Feb 27, 2024
1 parent cb739bd commit 50e0350
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .github/actions/download-docker-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ inputs:
runs:
using: "composite"
steps:
- name: Wait for docker image artifact
shell: bash
run: |
export GITHUB_SHA=${{ github.sha }}
export REPO_PATH=${{ github.repository }}
export GH_TOKEN=${{ inputs.repo-read-token }}
pip install -r requirements_test.txt
python .github/wait_for_workflow_artifacts.py - ${{ inputs.build-type }}-build-${{ github.sha }}
- name: Retrieve Docker image
uses: actions/download-artifact@v4
with:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/docker-hub-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ jobs:
export GH_TOKEN=${{ secrets.GH_PAT }}
pip install -r requirements_test.txt
python .github/wait_for_workflow_artifacts.py google-cloud-deploy docker-hub-push tag-check
- name: Wait for docker image artifact
run: |
export GITHUB_SHA=${{ github.sha }}
export REPO_PATH=${{ github.repository }}
export GH_TOKEN=${{ secrets.GH_PAT }}
pip install -r requirements_test.txt
python .github/wait_for_workflow_artifacts.py - release-build-${{ github.sha }}
- name: Download docker image artifact
- name: Wait for and download docker image artifact
uses: ./.github/actions/download-docker-artifact
with:
repo-read-token: ${{ secrets.GH_PAT }}
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Wait for docker image artifact
run: |
export GITHUB_SHA=${{ github.sha }}
export REPO_PATH=${{ github.repository }}
export GH_TOKEN=${{ secrets.GH_PAT }}
pip install -r requirements_test.txt
python .github/wait_for_workflow_artifacts.py - release-build-${{ github.sha }}
- name: Download docker image artifact
- name: Wait for and download docker image artifact
uses: ./.github/actions/download-docker-artifact
with:
repo-read-token: ${{ secrets.GH_PAT }}
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/tag-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Wait for docker image artifact
run: |
export GITHUB_SHA=${{ github.sha }}
export REPO_PATH=${{ github.repository }}
export GH_TOKEN=${{ secrets.GH_PAT }}
pip install -r requirements_test.txt
python .github/wait_for_workflow_artifacts.py - release-build-${{ github.sha }}
- name: Download docker image artifact
- name: Wait for and download docker image artifact
uses: ./.github/actions/download-docker-artifact
with:
repo-read-token: ${{ secrets.GH_PAT }}
Expand Down

0 comments on commit 50e0350

Please sign in to comment.