Skip to content

Commit

Permalink
check copy
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathchandra24 committed Mar 3, 2024
1 parent 8b70b31 commit 6410912
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-op-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'v*'
paths:
- ".github/workflows/build-op-image.yaml"
- "./.github/workflows/call-clone-images.yaml"
- "apis/**"
- "cmd/fluent-manager/**"
- "controllers/**"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/call-clone-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
needs: check-image-exists
runs-on: ubuntu-latest
steps:
- name: Login to target container registry ${{ inputs.target_registry }}
run: |
echo "${{ secrets.target_registry_token }}" | docker login ${{ inputs.target_registry }} -u ${{ secrets.target_registry_username }} --password-stdin
mkdir -p $HOME/.docker
cp ~/.docker/config.json $HOME/.docker/auth.json
env:
DOCKER_CONFIG: /home/runner/work/_temp/.docker
# - name: Login to target container registry ${{ inputs.target_registry }}
# run: |
# echo "${{ secrets.target_registry_token }}" | docker login ${{ inputs.target_registry }} -u ${{ secrets.target_registry_username }} --password-stdin
# mkdir -p $HOME/.docker
# cp ~/.docker/config.json $HOME/.docker/auth.json
# env:
# DOCKER_CONFIG: /home/runner/work/_temp/.docker

# - name: Login to source container registry ${{ inputs.source_registry }}
# uses: docker/login-action@v3
Expand All @@ -96,8 +96,8 @@
--retry-times 10 \
--src-no-creds \
--dest-creds "$RELEASE_CREDS" \
"docker://$STAGING_IMAGE_NAME:$TAG" \
"docker://$RELEASE_IMAGE_NAME:$TAG"
"docker://$SOURCE_IMAGE" \
"docker://$RELEASE_IMAGE"
env:
SOURCE_IMAGE: "${{ inputs.source_registry }}/${{ inputs.source_image }}"
RELEASE_IMAGE: "${{ inputs.target_registry }}/${{ inputs.target_image }}"
Expand Down

0 comments on commit 6410912

Please sign in to comment.