MINOR: Use docker buildx to promote docker image (#14974)

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
This commit is contained in:
Vedarth Sharma 2023-12-08 14:15:20 +05:30 committed by GitHub
parent 38c873b80f
commit b07a9b17c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -30,12 +30,15 @@ jobs:
if: github.repository == 'apache/kafka'
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Copy RC Image to promoted image
uses: iarekylew00t/regctl-installer@v1
- run: |
regctl image copy ${{ github.event.inputs.rc_docker_image }} ${{ github.event.inputs.promoted_docker_image }}
run: |
docker buildx imagetools create --tag ${{ github.event.inputs.promoted_docker_image }} ${{ github.event.inputs.rc_docker_image }}