Skip to content

Commit

Permalink
gh-actions/docker/registry: Add sleep on registry start (#809)
Browse files Browse the repository at this point in the history
ideally this waits on a health check, so this is a workaround

Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Sep 2, 2023
1 parent 85360a7 commit 8a8f4f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gh-actions/docker/registry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ inputs:
as:
type: string
default:
wait_for_container:
type: number
default: 5

runs:
using: "composite"
Expand All @@ -26,6 +29,9 @@ runs:
--restart always \
--name ${{ inputs.name }} \
${{ inputs.image }}
if [[ "${{ inputs.wait_for_container }}" ]]; then
sleep "${{ inputs.wait_for_container }}"
fi
shell: bash
- run: |
if [[ -z "${{ inputs.as }}" ]]; then
Expand Down

0 comments on commit 8a8f4f6

Please sign in to comment.