Merge pull request #51 from lidofinance/filter-alerts #5
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
--- | |
name: Build and deploy devel image | |
on: | |
push: | |
branches: | |
- devel | |
env: | |
IMAGE_NAME: onchain-mon | |
IMAGE_TAG: devel | |
jobs: | |
build-and-push: | |
name: Build and push devel image | |
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 }} | |
deploy: | |
needs: | |
- build-and-push | |
runs-on: ubuntu-latest | |
name: Deploy devel image | |
steps: | |
- name: Deploy to development cluster | |
uses: lidofinance/dispatch-workflow@v1 | |
env: | |
APP_ID: ${{ secrets.APP_ID }} | |
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | |
TARGET_REPO: 'lidofinance/ansible-onchain-mon-infra' | |
TARGET: devel | |
DISPATCH_BRANCH: main | |
TARGET_WORKFLOW: 'onchain_mon_devel_deploy.yaml' |