generated from sergeyWh1te/go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from lidofinance/feature/sre-1577-finding-forwa…
…reder-add-forwkflows-to-build-and-push-images Added workflows to build and push images
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |