diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..6055ec5 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,13 @@ +## Summary + +What's this about in a few words. + +## Task + +Linear task link + +## Changes ([help](https://www.conventionalcommits.org/en/v1.0.0/#summary)) + +- feat: what's new in your PR +- fix: what you've fixed +- style: what's improved diff --git a/.github/workflows/build_devel.yml b/.github/workflows/build_devel.yml new file mode 100644 index 0000000..9542699 --- /dev/null +++ b/.github/workflows/build_devel.yml @@ -0,0 +1,36 @@ +--- +name: Build and release devel image + +on: + push: + branches: + - devel + +env: + IMAGE_NAME: forta-finding-forwarder + IMAGE_TAG: latest + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Setup buildx + id: buildx + uses: docker/setup-buildx-action@v3.3.0 + + - name: Log in to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build docker image + id: docker_build_candidate + uses: docker/build-push-action@v6.1.0 + with: + push: true + tags: lidofinance/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} + builder: ${{ steps.buildx.outputs.name }} diff --git a/.github/workflows/build_production.yml b/.github/workflows/build_production.yml new file mode 100644 index 0000000..aa33cbc --- /dev/null +++ b/.github/workflows/build_production.yml @@ -0,0 +1,36 @@ +--- +name: Build and release production image + +on: + push: + branches: + - main + +env: + IMAGE_NAME: forta-finding-forwarder + IMAGE_TAG: stable + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Setup buildx + id: buildx + uses: docker/setup-buildx-action@v3.3.0 + + - name: Log in to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build docker image + id: docker_build_candidate + uses: docker/build-push-action@v6.1.0 + with: + push: true + tags: lidofinance/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} + builder: ${{ steps.buildx.outputs.name }}