Skip to content

Commit

Permalink
fix: [#34] added extra step to retrieve the registry content
Browse files Browse the repository at this point in the history
  • Loading branch information
jherrerasbp committed Dec 31, 2024
1 parent 63cd92f commit 8f27136
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/docker-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ permissions:
contents: read
packages: write
env:
BUILD_IMAGE_NAME: mcvs-registry
DOCKERFILE_CONTEXT: ./registry
IMAGE_MANIFEST_LIST: datadog/agent:7.59.0
IMAGE_MANIFEST_SINGLE: nginx/nginx:1.27.0
IMAGE_MANIFEST_LIST: nginx/nginx:1.27.0-alpine
IMAGE_MANIFEST_SINGLE: nginx/nginx:1.27.0-alpine-slim-amd64
REGCTL_VERSION: v0.8.0
REGISTRY_LOCAL: localhost:5000
REGISTRY_REMOTE: public.ecr.aws
Expand All @@ -37,11 +38,11 @@ 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
# run local registry
docker run -d \
-p 5000:5000 \
--name mcvs-registry-tmp \
Expand Down Expand Up @@ -80,3 +81,18 @@ jobs:
dockle-accept-key: "curl,HOME,libcrypto3,libssl3,PATH"
images: ghcr.io/${{ github.repository }}/${{ matrix.build-args }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get new registry catalog
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
#!/bin/bash
docker images
docker run -d \
-p 5005:5000 \
--name mcvs-registry \
ghcr.io/${{ github.repository }}/${{ env.BUILD_IMAGE_NAME }}:pr-${{ github.event.number }}

Check failure on line 94 in .github/workflows/docker-registry.yml

View workflow job for this annotation

GitHub Actions / mcvs-docker-action (mcvs-integrationtest-services)

94:81 [line-length] line too long (102 > 80 characters)
curl --silent http://localhost:5005/v2/_catalog
docker rm --force mcvs-registry

0 comments on commit 8f27136

Please sign in to comment.