From d248cf68b24fabc1d9f6bb41de03d1fe9a76f062 Mon Sep 17 00:00:00 2001 From: John Collier Date: Wed, 4 Nov 2020 11:21:28 -0500 Subject: [PATCH] Add GitHub action to push metadata image (#9) Signed-off-by: John Collier --- .github/workflows/pushimage-next.yaml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pushimage-next.yaml diff --git a/.github/workflows/pushimage-next.yaml b/.github/workflows/pushimage-next.yaml new file mode 100644 index 00000000..5633d2e2 --- /dev/null +++ b/.github/workflows/pushimage-next.yaml @@ -0,0 +1,31 @@ +# +# Copyright (c) 2020 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +name: Next Dockerimage + +on: + push: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout registry-support source code + uses: actions/checkout@v2 + - name: Login to Quay + uses: docker/login-action@v1 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + - name: Build the registry metadata image + run: cd oci-devfile-registry-metadata && ./build.sh + - name: Push the registry metadata image + run: cd oci-devfile-registry-metadata && ./push.sh quay.io/devfile/metadata-server:next