Skip to content

fix: use effective stake (root + alpha), set 5000 for effective stake… #226

fix: use effective stake (root + alpha), set 5000 for effective stake…

fix: use effective stake (root + alpha), set 5000 for effective stake… #226

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- dev
- main
- simulator
jobs:
docker_publish:
name: Docker Build and Push
runs-on: self-hosted
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract Branch Name
run: |
BRANCH_NAME=${GITHUB_REF#refs/heads/}
SANITIZED_BRANCH_NAME=${BRANCH_NAME//\//-}
echo "BRANCH_NAME=$SANITIZED_BRANCH_NAME" >> $GITHUB_ENV
- name: Build and Push Docker Image with Branch Tag
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/simulator'
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
image_tag: ${{ env.BRANCH_NAME }}
github_token: ${{ secrets.PAT }}
dockerfile: ./docker/Dockerfile
- name: Build and Push Docker Image with Semver Tag
if: startsWith(github.ref, 'refs/tags/')
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.PAT }}