diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..61165a1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,32 @@ +name: Build and Publish Docker Image + +on: + push: + branches: + - main + +jobs: + build-and-push: + needs: checks + runs-on: ubuntu-latest + name: build and publish + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Log in to Quay.io + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_TOKEN }} + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: quay.io/abhishekvrshny/propeller:latest diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index e407bc8..218b2af 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -11,8 +11,6 @@ jobs: - name: checkout id: checkout uses: actions/checkout@v1 - with: - submodules: true - name: install prerequisites run: | apk add --update --no-cache --repository https://dl-4.alpinelinux.org/alpine/latest-stable/community/ build-base gcc make git librdkafka-dev pkgconf curl diff --git a/Readme.md b/Readme.md index e3e0a3e..1c76753 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,7 @@ -# Propeller +# Propeller 𖣘 +[![Go Report Card](https://goreportcard.com/badge/github.com/CRED-CLUB/propeller)](https://goreportcard.com/report/github.com/CRED-CLUB/propeller) +[![CHECKS](https://github.com/CRED-CLUB/propeller/actions/workflows/checks.yaml/badge.svg)](https://github.com/CRED-CLUB/propeller/actions/workflows/checks.yaml/badge.svg) +[![GoDoc](https://godoc.org/github.com/CRED-CLUB/propeller?status.svg)](https://godoc.org/github.com/CRED-CLUB/propeller) Stars Propeller is a platform to enable bi-directional low latency communication between two systems. The primary use-case is to enable server side events to the app. @@ -6,7 +9,7 @@ Propeller is a platform to enable bi-directional low latency communication betwe ## Pre-requisites 1. Docker -2. Go 1.21 +2. Go 1.23 ## Running the service After cloning the repo, run `make help` to see list of all available commands