Skip to content

Changed default DISPATCH_BRANCH #6

Changed default DISPATCH_BRANCH

Changed default DISPATCH_BRANCH #6

Workflow file for this run

---
name: Build and release devel image
on:
push:
branches:
- devel
env:
IMAGE_NAME: onchain-mon
IMAGE_TAG: devel
jobs:
build-and-push:
name: Build and push 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
steps:
- name: Deploy devel image
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'
# TAG: '${{ github.event.release.tag_name }}'
TARGET: devel
DISPATCH_BRANCH: main
TARGET_WORKFLOW: 'onchain_mon_devel_deploy.yaml'