Skip to content
Snippets Groups Projects
Unverified Commit f20fab5b authored by Anton Kostenko's avatar Anton Kostenko Committed by GitHub
Browse files

Use regctl to push multi-arch image (#30101)


* Use regctl to push multi-arch image

---------

Co-authored-by: default avatarLuis Paolini <paoliniluis@gmail.com>
parent fb79343b
No related branches found
No related tags found
No related merge requests found
......@@ -251,10 +251,15 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Push experimental ubuntu image only for versions based on a master
- name: Install regctl
uses: regclient/actions/regctl-installer@main
with:
release: 'v0.4.7'
- name: Switch regctl to point to localhost:5000 via http
run: regctl registry set --tls disabled localhost:5000
- name: Retag and push ubuntu-based images if master (ee)
if: ${{ matrix.edition == 'ee' }}
run: docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee-ubuntu metabase/metabase-enterprise-head:latest-ubuntu && docker push metabase/metabase-enterprise-head:latest-ubuntu
run: regctl image copy localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-ee-ubuntu metabase/metabase-enterprise-head:latest-ubuntu
- name: Retag and push ubuntu-based images if master (oss)
if: ${{ matrix.edition == 'oss' }}
run: docker tag localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-oss-ubuntu metabase/metabase-head:latest-ubuntu && docker push metabase/metabase-head:latest-ubuntu
run: regctl image copy localhost:5000/metabase-dev:${{ steps.extract_branch.outputs.branch }}-oss-ubuntu metabase/metabase-head:latest-ubuntu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment