From 7b6ac0140ddc1e2d963838ee120f7d2fdf452d72 Mon Sep 17 00:00:00 2001 From: eladyn Date: Mon, 30 Dec 2024 17:55:12 +0100 Subject: [PATCH] cd: new cd version --- .github/workflows/new_cd.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/new_cd.yml diff --git a/.github/workflows/new_cd.yml b/.github/workflows/new_cd.yml new file mode 100644 index 00000000..2548d9df --- /dev/null +++ b/.github/workflows/new_cd.yml @@ -0,0 +1,40 @@ +name: Continuous Deployment (new) + +on: + push: + tags: + - 'v*.*.*' + branches: + - master + - cd_rework_new + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + 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 + +