-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PTFE-687: action to sync two registries #88
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add a test workflow that calls this action
|
||
|
||
runs: | ||
using: "composite" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of making it a composite action, make it a docker one. Removing the need to ask users to use the proper container image and giving you more control over the environment.
on: | ||
workflow_dispatch: | ||
```yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on: | |
workflow_dispatch: | |
```yaml | |
```yaml | |
on: | |
workflow_dispatch: | |
# optionally show example with inputs. | |
inputs: | |
SOURCE_REPO: | |
required: true | |
IMAGE_NAME: | |
required: true | |
Then use those vars below.
SRC_USERNAME: ${{ secrets.<src-username> }} | ||
SRC_PASSWORD: ${{ secrets.<src-password> }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SRC_USERNAME: ${{ secrets.<src-username> }} | |
SRC_PASSWORD: ${{ secrets.<src-password> }} | |
SRC_USERNAME: ${{ secrets.REGISTRY_LOGIN }} | |
SRC_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} |
uses: scality/actions/registry-image-sync | ||
with: | ||
SOURCE_REPO: <repo-name> # Ex bert-e | ||
IMAGE_NAME: <image-name> # Ex bert-e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're making some parameters as required but not mentioning them here, feel free to setup default values for the destination.
required: true | ||
TARGET_REGISTRY: | ||
description: "the target registry" | ||
required: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required: true | |
required: false | |
default: ghcr.io/scality |
SRC_PASSWORD: | ||
description: "the password in source registry" | ||
DEST_USERNAME: | ||
description: "the username in destination registry" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: "the username in destination registry" | |
description: "the username in destination registry" | |
default: ${{ github.actor }} |
DEST_USERNAME: | ||
description: "the username in destination registry" | ||
DEST_PASSWORD: | ||
description: "the password in destination registry" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: "the password in destination registry" | |
description: "the password in destination registry" | |
default: ${{ github.token }} |
No description provided.