From 3092b69dcf53badf0929c70ad1736402d5e0727b Mon Sep 17 00:00:00 2001 From: asararatnakar Date: Thu, 26 Oct 2023 10:26:59 -0400 Subject: [PATCH] A job to push operator image from main 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