Merge pull request #13 from codefresh-io/argocd/cr-19101-copy-redis-image
ArgoCD: CR-19101 - Create new workflow for copy Redis image to Quay ( for supporting multiplatform images)
This commit is contained in:
commit
079305b91c
1 changed files with 35 additions and 0 deletions
35
.github/workflows/codefresh-copy-redis-image.yml
vendored
Normal file
35
.github/workflows/codefresh-copy-redis-image.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: Copy Redis Image
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
copy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Extract Redis Image Tag from values.yaml
|
||||||
|
id: get_redis_image_tag
|
||||||
|
run: |
|
||||||
|
echo "VERSION=$(yq e .redis.image.tag charts/argo-cd/values.yaml)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Login to Quay
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: quay.io
|
||||||
|
username: ${{ secrets.QUAY_USER }}
|
||||||
|
password: ${{ secrets.QUAY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install regctl
|
||||||
|
run: |
|
||||||
|
curl -Lo regctl https://github.com/regclient/regclient/releases/download/v0.5.0/regctl-linux-amd64
|
||||||
|
chmod +x regctl
|
||||||
|
sudo mv regctl /usr/local/bin/
|
||||||
|
|
||||||
|
- name: Copy Redis Image
|
||||||
|
env:
|
||||||
|
SRC_IMAGE_REPO: public.ecr.aws/docker/library/redis
|
||||||
|
DST_IMAGE_REPO: quay.io/codefresh/redis
|
||||||
|
run: |
|
||||||
|
regctl image copy ${{ env.SRC_IMAGE_REPO }}:${{ env.VERSION }} ${{ env.DST_IMAGE_REPO }}:${{ env.VERSION }} --verbosity debug
|
Loading…
Reference in a new issue