Skip to content

Commit

Permalink
create .env file in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aliavni committed Apr 19, 2024
1 parent 98149c4 commit c821483
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,28 @@ 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:
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_POSTGRES_USER: postgres
envkey_POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
envkey_LAB_HOME: /home/jovyan
envkey_SPARK_MASTER: spark://spark-master:7077
envkey_SPARK_WORKER_CORES: 4
envkey_SPARK_WORKER_MEMORY: 5G
envkey_SPARK_DRIVER_MEMORY: 5G
envkey_SPARK_EXECUTOR_MEMORY: 5G

directory: .
file_name: .env
fail_on_empty: true
sort_keys: false

steps:
- uses: actions/checkout@v3
- name: Build the docker-compose stack
run: docker-compose up -d
- uses: actions/checkout@v3
- name: Build the docker-compose stack
run: docker-compose up -d

- name: Check running containers
run: docker ps -a
- name: Check running containers
run: docker ps -a

0 comments on commit c821483

Please sign in to comment.