Skip to content

Commit

Permalink
Create draft build-api.yaml
Browse files Browse the repository at this point in the history
Add github action to build api container with default options
  • Loading branch information
pellecchialuigi authored Sep 4, 2024
1 parent 080c770 commit a86672b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
uses: docker/build-push-action@v6
with:
build-args: |
ADMIN_PASSWORD=admin
API_PORT=5000
context: .
push: false
tags: basil/api:${BRANCH_NAME}

0 comments on commit a86672b

Please sign in to comment.