Skip to content

Deprecating 'tables' #185

Deprecating 'tables'

Deprecating 'tables' #185

Workflow file for this run

name: Build and push gohan-api
on:
release:
types: [ published ]
pull_request:
branches:
- master
- "releases/**" # temp
- "qa/**" # Build PRs which will be eventually merged into patches
push:
branches:
- master
jobs:
build-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Gather default environment variables
id: envx
run: |
cp ./etc/example.env .env
source .env
echo "GOHAN_API_BUILDER_BASE_IMAGE=$GOHAN_API_BUILDER_BASE_IMAGE" >> $GITHUB_ENV
echo "GOHAN_API_BASE_IMAGE=$GOHAN_API_BASE_IMAGE" >> $GITHUB_ENV
- name: Load environment variables from .env file
uses: xom9ikk/dotenv@v2
- name: Run Bento build action
uses: bento-platform/[email protected]
with:
context: "{{defaultContext}}:src/api"
build-args: |
BUILDER_BASE_IMAGE=${{ env.GOHAN_API_BUILDER_BASE_IMAGE }}
BASE_IMAGE=${{ env.GOHAN_API_BASE_IMAGE }}
registry: ghcr.io
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
image-name: ghcr.io/bento-platform/gohan-api
development-dockerfile: dev.Dockerfile
dockerfile: Dockerfile