Skip to content

Commit

Permalink
Merge pull request #9 from lidofinance/feature/sre-1577-finding-forwa…
Browse files Browse the repository at this point in the history
…reder-add-forwkflows-to-build-and-push-images

Added workflows to build and push images
  • Loading branch information
ramiz-lido authored Aug 1, 2024
2 parents 0d630f2 + be3f8bc commit 1b92a4c
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -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
36 changes: 36 additions & 0 deletions .github/workflows/build_devel.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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/[email protected]
with:
push: true
tags: lidofinance/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
builder: ${{ steps.buildx.outputs.name }}
36 changes: 36 additions & 0 deletions .github/workflows/build_production.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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/[email protected]
with:
push: true
tags: lidofinance/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
builder: ${{ steps.buildx.outputs.name }}

0 comments on commit 1b92a4c

Please sign in to comment.