From a7bd80c5fb1b2a673545f653991da2f474f12a55 Mon Sep 17 00:00:00 2001 From: Ratnakar Date: Fri, 27 Oct 2023 11:56:20 -0400 Subject: [PATCH] A job to push operator image from main (#144) https://github.com/hyperledger-labs/fabric-operator/issues/143 Signed-off-by: asararatnakar --- .github/workflows/image-build.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/image-build.yaml diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml new file mode 100644 index 00000000..2340f70b --- /dev/null +++ b/.github/workflows/image-build.yaml @@ -0,0 +1,20 @@ +name: Build and Push Operator image + +on: + push: + branches: [main] + +jobs: + image: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Build + run: | + scripts/install-tools.sh + make image + - name: Push + run: | + echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin + make image-push image-push-latest