From 029375399f484b04e082c29b2c5db2ad66719780 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Thu, 21 Mar 2024 18:38:27 +0300 Subject: [PATCH] Yet another attempt to fix CI builds. --- .gitea/workflows/build.yaml | 9 +-------- build_ci_cd.sh | 10 ++++++++++ docker-compose.yaml | 12 ++++++++++-- 3 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 build_ci_cd.sh diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index cdd48cc..45cc646 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -19,12 +19,5 @@ jobs: uses: actions/checkout@v3 with: submodules: recursive - - name: "Where are my files????" - run: | - bash -c "pwd && ls -laR" - - name: Run Build Script - run: docker-compose run build - working-directory: ${{ gitea.workspace }} - - name: Upload NuGet Package - run: "bash ${{ gitea.workspace }}/publish.sh" + run: "bash ${{ gitea.workspace }}/build_ci_cd.sh" diff --git a/build_ci_cd.sh b/build_ci_cd.sh new file mode 100644 index 0000000..c0154b0 --- /dev/null +++ b/build_ci_cd.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +cd $(dirname "$0") +if [ -z "$QUIK_API_KEY" ] +then + echo "Please define QUIK_API_KEY" + exit 1 +fi + +docker-compose run build && docker-compose run publish diff --git a/docker-compose.yaml b/docker-compose.yaml index a1a1e40..c73e8d6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,6 +3,14 @@ version: "2" services: build: image: git.mixedup.dev/quik/docker-cross-compiler - command: "ls -laR" + command: "/home/quik/src/build_native.sh" volumes: - - .:/home/quik/src \ No newline at end of file + - .:/home/quik/src + publish: + image: git.mixedup.dev/quik/docker-cross-compiler + command: "/home/quik/src/publish.sh" + environment: + QUIK_API_KEY: ${QUIK_API_KEY} + volumes: + - .:/home/quik/src + \ No newline at end of file