diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3356f41..ec72ee8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -80,7 +80,9 @@ jobs: sudo ctr i import --base-name ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} --digests --all-platforms /tmp/plexanisync-image.tar while IFS= read -r line; do echo "Pushing $line" - sudo ctr i push --user "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" $line + for i in {1..5}; do + sudo ctr i push --user "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" $line && break || sleep 15; + done done <<< "${{ steps.meta.outputs.tags }}" build-docker-tautulli: @@ -130,5 +132,7 @@ jobs: sudo ctr i import --base-name ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} --digests --all-platforms /tmp/tautulli-image.tar while IFS= read -r line; do echo "Pushing $line" - sudo ctr i push --user "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" $line + for i in {1..5}; do + sudo ctr i push --user "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" $line && break || sleep 15; + done done <<< "${{ steps.meta.outputs.tags }}" diff --git a/Docker/PlexAniSync/Dockerfile b/Docker/PlexAniSync/Dockerfile index 638ea82..f413161 100644 --- a/Docker/PlexAniSync/Dockerfile +++ b/Docker/PlexAniSync/Dockerfile @@ -9,18 +9,16 @@ ENV PLEX_SECTION=Anime \ PLEX_TOKEN='' \ ANI_USERNAME='' \ ANI_TOKEN='' \ - INTERVAL=3600 - -ENV PATH="${PATH}:~/.local/bin" + INTERVAL=3600 \ + PATH="${PATH}:~/.local/bin" ADD ./* /plexanisync/ +ADD Docker/PlexAniSync/run/* /plexanisync/ RUN cd /plexanisync && \ python3 -m pip install -r requirements.txt && \ cd .. -ADD Docker/PlexAniSync/run/* /plexanisync/ - LABEL org.opencontainers.image.documentation=https://github.com/RickDB/PlexAniSync/blob/master/Docker/PlexAniSync/README.md CMD ["/plexanisync/runsync.sh"]