From 353ff9aa812450dbac93ce58658433fdc86aac3d Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 14 Mar 2024 15:56:52 +0000 Subject: [PATCH] feat: update kubesealer and extract docker-compose into a file --- run-sync/action.yaml | 35 +---------------------------------- run-sync/docker-compose.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 34 deletions(-) create mode 100644 run-sync/docker-compose.yaml diff --git a/run-sync/action.yaml b/run-sync/action.yaml index 97a0e4b..8b61f19 100644 --- a/run-sync/action.yaml +++ b/run-sync/action.yaml @@ -32,40 +32,7 @@ runs: - name: setup docker-compose.yaml working-directory: ${{ runner.temp }}/kubesealer shell: bash - run: | - - cat << EOF > docker-compose.yaml - version: "3.4" - - services: - op-connect-api: - image: 1password/connect-api:latest - ports: - - "8080:8080" - volumes: - - "./1password-credentials.json:/home/opuser/.op/1password-credentials.json" - - "data:/home/opuser/.op/data" - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/heartbeat"] - interval: 2s - timeout: 1s - retries: 5 - start_period: 5s - op-connect-sync: - image: 1password/connect-sync:latest - ports: - - "8081:8080" - volumes: - - "./1password-credentials.json:/home/opuser/.op/1password-credentials.json" - - "data:/home/opuser/.op/data" - kubesealer: - image: turo/kubesealer:latest - env_file: .env - - volumes: - data: - - EOF + run: cp ${{ github.action_path }}/docker-compose.yaml . - name: docker versions shell: bash diff --git a/run-sync/docker-compose.yaml b/run-sync/docker-compose.yaml new file mode 100644 index 0000000..fdf9689 --- /dev/null +++ b/run-sync/docker-compose.yaml @@ -0,0 +1,29 @@ +version: "3.4" + +services: + op-connect-api: + image: 1password/connect-api:latest + ports: + - "8080:8080" + volumes: + - "./1password-credentials.json:/home/opuser/.op/1password-credentials.json" + - "data:/home/opuser/.op/data" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8080/heartbeat"] + interval: 2s + timeout: 1s + retries: 5 + start_period: 5s + op-connect-sync: + image: 1password/connect-sync:latest + ports: + - "8081:8080" + volumes: + - "./1password-credentials.json:/home/opuser/.op/1password-credentials.json" + - "data:/home/opuser/.op/data" + kubesealer: + image: turo/kubesealer:4.11.0 + env_file: .env + +volumes: + data: