From a86672b070614cca5e00d3b7706935a8086f64cd Mon Sep 17 00:00:00 2001 From: Luigi <63158371+pellecchialuigi@users.noreply.github.com> Date: Wed, 4 Sep 2024 10:24:01 +0200 Subject: [PATCH] Create draft build-api.yaml Add github action to build api container with default options --- .github/workflows/build-api.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-api.yaml diff --git a/.github/workflows/build-api.yaml b/.github/workflows/build-api.yaml new file mode 100644 index 0000000..6f194c2 --- /dev/null +++ b/.github/workflows/build-api.yaml @@ -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}