Skip to content

Commit

Permalink
cd: move compose file out of action
Browse files Browse the repository at this point in the history
  • Loading branch information
eladyn committed Dec 30, 2024
1 parent 7b6ac01 commit b4990eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/new_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions contrib/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b4990eb

Please sign in to comment.