From b4990eb0e307db4026d8456c872dcdf4c30b728a Mon Sep 17 00:00:00 2001 From: eladyn Date: Mon, 30 Dec 2024 18:00:52 +0100 Subject: [PATCH] cd: move compose file out of action --- .github/workflows/new_cd.yml | 19 ++----------------- contrib/docker-compose.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 contrib/docker-compose.yml diff --git a/.github/workflows/new_cd.yml b/.github/workflows/new_cd.yml index 2548d9df..e0912538 100644 --- a/.github/workflows/new_cd.yml +++ b/.github/workflows/new_cd.yml @@ -18,23 +18,8 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Create compose file - run: | - echo 'services:\ - build-container: - image: rust:1.79-bookworm - platform: linux/arm64 - command: bash -c " - apt-get update && - apt-get install -y \ - libasound2-dev \ - libssl-dev \ - pkg-config && - cargo build --release" - working_dir: /build - volumes: - - ./:/build' > docker-compose.yml - name: Run compose file - run: docker compose up + run: | + docker compose -f contrib/docker-compose.yml up diff --git a/contrib/docker-compose.yml b/contrib/docker-compose.yml new file mode 100644 index 00000000..5a8350ec --- /dev/null +++ b/contrib/docker-compose.yml @@ -0,0 +1,14 @@ +services: + build-container: + image: rust:1.79-bookworm + platform: linux/arm64 + command: bash -c " + apt-get update && + apt-get install -y \ + libasound2-dev \ + libssl-dev \ + pkg-config && + cargo build --release" + working_dir: /build + volumes: + - ./:/build