added timeouts to crane commands that hang #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-docker-registry-sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Run tests | |
| run: | | |
| ./ci/github/docker-registry-sync.bash tests | |
| - name: Build Docker image | |
| run: | | |
| ./ci/github/docker-registry-sync.bash build | |
| env: | |
| DOCKER_HUB_TARGET_REGISTRY_NAME: ${{ secrets.DOCKER_HUB_TARGET_REGISTRY_NAME }} | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USER }} | |
| password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| - name: Push Docker image | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| run: | | |
| ./ci/github/docker-registry-sync.bash push | |
| env: | |
| DOCKER_HUB_TARGET_REGISTRY_NAME: ${{ secrets.DOCKER_HUB_TARGET_REGISTRY_NAME }} |