From a10030b3fc61745fca045b943aee2e849a919156 Mon Sep 17 00:00:00 2001 From: Ali Cirik Date: Fri, 19 Apr 2024 10:32:21 -0400 Subject: [PATCH] Build docker stack in actions --- .github/workflows/build-docker.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build-docker.yml diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml new file mode 100644 index 0000000..d1b08ce --- /dev/null +++ b/.github/workflows/build-docker.yml @@ -0,0 +1,27 @@ +name: Docker Image CI + +on: [push] + +jobs: + + build: + runs-on: ubuntu-latest + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }} + LAB_HOME: /home/jovyan + + SPARK_MASTER: spark://spark-master:7077 + SPARK_WORKER_CORES: 4 + SPARK_WORKER_MEMORY: 5G + SPARK_DRIVER_MEMORY: 5G + SPARK_EXECUTOR_MEMORY: 5G + + + steps: + - uses: actions/checkout@v3 + - name: Build the docker-compose stack + run: docker-compose up -d + + - name: Check running containers + run: docker ps -a