Skip to content

Commit

Permalink
fix: [#34] added condition to prevent images pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
jherrerasbp committed Dec 27, 2024
1 parent 97356eb commit 55f02cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,27 @@ jobs:
- name: Create registry backup directory
run: mkdir -p ${{ env.DOCKERFILE_CONTEXT }}/backup-registry
- name: Pull images data and prepare context directory
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
#!/bin/bash
docker run -d \
-p 5000:5000 \
--name mcvs-registry-tmp \
registry:${{ env.REGISTRY_VERSION }}
# disable tls for local tmp registry
regctl registry set --tls disabled ${{ env.REGISTRY_LOCAL }}
# import image with manifest list
regctl \
image \
copy --digest-tags \
${{ env.REGISTRY_REMOTE }}/${{ env.IMAGE_MANIFEST_LIST }} \
${{ env.REGISTRY_LOCAL }}/${{ env.IMAGE_MANIFEST_LIST }}
# import image with single manifest
regctl \
image \
copy --digest-tags \
Expand Down

0 comments on commit 55f02cc

Please sign in to comment.