ci: increase limit of validatar query in hasura config #720
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: docker-build | |
on: | |
push: | |
branches: | |
- cosmos/*/* | |
- chains/*/* | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set Callisto chain name 🔧 | |
shell: bash | |
run: echo "CHAIN_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_ENV | |
- name: Set Callisto version 🔧 | |
shell: bash | |
run: echo "GITHUB_VERSION=$(git describe --tags)" >> $GITHUB_ENV | |
- name: Prepare tags 🏷️ | |
id: prep | |
run: | | |
DOCKER_IMAGE=${{ secrets.DOCKERHUB_BDJUNO_REPO }} | |
CHAIN_NAME="${{env.CHAIN_NAME}}" | |
VERSION="${{env.GITHUB_VERSION}}" | |
TAGS="${DOCKER_IMAGE}:${CHAIN_NAME}-${VERSION}" | |
echo ::set-output name=version::${VERSION} | |
echo ::set-output name=tags::${TAGS} | |
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | |
- name: Determine Dockerfile to use 🔍 | |
run: | | |
if [[ -f Dockerfile.cosmwasm ]]; then | |
export DOCKERFILE=Dockerfile.cosmwasm | |
else | |
export DOCKERFILE=Dockerfile.default | |
fi | |
echo "DOCKERFILE=${DOCKERFILE}" >> $GITHUB_ENV | |
- name: Set up Docker Buildx 🧰 | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub 👤 | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push 📤 | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: "./${{ env.DOCKERFILE }}" | |
push: true | |
tags: ${{ steps.prep.outputs.tags }} |