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