Skip to content

Update and rename build-api.yaml to build.yaml #1

Update and rename build-api.yaml to build.yaml

Update and rename build-api.yaml to build.yaml #1

Workflow file for this run

name: ci
on:
push:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Print current branch
run: echo "${BRANCH_NAME}"
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Api
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
uses: docker/build-push-action@v6
with:
build-args: |
ADMIN_PASSWORD=admin
API_PORT=5000
context: .
file: Dockerfile-api
push: false
tags: basil-api_${{ env.BRANCH_NAME }}
- name: Build App
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
uses: docker/build-push-action@v6
with:
build-args: |
API_ENDPOINT=http://localhost:5000
context: .
file: Dockerfile-app
push: false
tags: basil-app_${{ env.BRANCH_NAME }}