Skip to content

Commit 2c2e82c

Browse files
committed
WIP: resolving github workflow
1 parent 6518a89 commit 2c2e82c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/docker-build-and-test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build-and-test:
1515
runs-on: ubuntu-latest
1616

17-
services:
17+
# services:
1818
# You can define services that need to be running while testing
1919
# For example, if your app relies on a database, you could define it here
2020
# db:
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Create a sealog-files directory
3838
run: |
39-
sudo mkdir -p /opt/sealog-server/sealog-files
39+
sudo mkdir -p /data/sealog-files
4040
4141
- name: Generate a secret key
4242
id: generate-secret
@@ -47,12 +47,18 @@ jobs:
4747
# Save the secret key for later steps
4848
echo "SECRET_KEY=$SECRET_KEY" >> $GITHUB_ENV
4949
50-
- name: Modify docker-compose.yml (example)
50+
- name: Modify docker-compose.yml
5151
run: |
5252
cp docker-compose.yml.dist docker-compose.yml
5353
5454
sed -i "s|<SECRET_TOKEN>|${{ secrets.SECRET_KEY }}|g" docker-compose.yml
5555
56+
- name: Modify Dockerfile
57+
run: |
58+
cp Dockerfile.dist Dockerfile
59+
60+
sed -i "s|<SECRET_TOKEN>|${{ secrets.SECRET_KEY }}|g" docker-compose.yml
61+
5662
- name: Build and Run Docker Compose
5763
run: |
5864
docker-compose -f docker-compose.yml up -d --build
@@ -63,7 +69,7 @@ jobs:
6369
run: |
6470
# You can run any tests or health checks here, e.g., using curl or a test script.
6571
# Example for a web server test:
66-
curl -f http://localhost:8000 || exit 1
72+
curl -f http://localhost:8000/sealog-server || exit 1
6773
6874
- name: Tear down Docker Compose
6975
run: |

0 commit comments

Comments
 (0)