Skip to content

Commit b324e04

Browse files
author
Pau Tena
committed
Fix test docker compose workflow
1 parent 750bce6 commit b324e04

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test-docker-compose.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ jobs:
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
19-
- run: docker compose build
19+
- name: Install 1Password CLI
20+
uses: 1password/install-cli-action@v1
21+
- name: Load secrets from 1Password
22+
uses: 1password/load-secrets-action/configure@v2
23+
with:
24+
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
25+
- run: op run --env-file=".env" -- docker compose build
2026
- run: docker compose down -v --remove-orphans
21-
- run: docker compose up -d --wait backend frontend adminer
27+
- run: op run --env-file=".env" -- docker compose up -d --wait backend frontend adminer
2228
- name: Test backend is up
2329
run: curl http://localhost:8000/api/v1/utils/health-check
2430
- name: Test frontend is up

0 commit comments

Comments
 (0)