Skip to content

Commit

Permalink
feat: update kubesealer and extract docker-compose into a file
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Mar 14, 2024
1 parent aba0146 commit 353ff9a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 34 deletions.
35 changes: 1 addition & 34 deletions run-sync/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions run-sync/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 353ff9a

Please sign in to comment.