Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

INSERT has more expressions than target columns (issue #104) #232

INSERT has more expressions than target columns (issue #104)

INSERT has more expressions than target columns (issue #104) #232

#
# Generated by @zondax/cli
#
name: Publish
on:
push:
branches:
- main
- master
- dev
pull_request:
branches: ["*"]
release:
types:
- created
tags:
- "v[0-9]+"
- "v[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
build-earthly:
runs-on: zondax-runners
container:
image: earthly/earthly:v0.7.23
env:
# Internal buildkit link reachable from internal runners
EARTHLY_BUILDKIT_HOST: tcp://buildkit-builder-runners-earthly-buildkit:8372
# Exposed buildkit link reachable from internal runners and warp vpn
#EARTHLY_BUILDKIT_HOST := tcp://buildkit.zondax.dev:8372
NO_BUILDKIT: 1
options: --tty
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Put back the git branch into git (Earthly uses it for tagging)
run: |
git config --global --add safe.directory "*"
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Earthly bootstrap and configure
run: |
earthly config global.disable_analytics true
earthly config global.tls_enabled false
earthly --version
earthly bootstrap
- name: Run build (PR)
# Based on https://docs.github.com/en/actions/learn-github-actions/contexts#example-usage-of-the-github-context
if: ${{ github.event_name == 'pull_request' }}
env:
EARTHLY_PUSH: False
run: earthly --ci +all
- name: Login to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run build (branch) and publish
if: ${{ github.event_name != 'pull_request' }}
run: earthly --ci --push +all