Skip to content

Commit 68ecc02

Browse files
committed
publish to docker reg
1 parent 08f2e57 commit 68ecc02

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/build-and-deploy-docker-image.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ jobs:
4949
tags: ${{ steps.meta.outputs.tags }}
5050
labels: ${{ steps.meta.outputs.labels }}
5151

52-
- name: Generate artifact attestation
53-
uses: actions/attest-build-provenance@v2
54-
with:
55-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
56-
subject-digest: ${{ steps.push.outputs.digest }}
57-
push-to-registry: true
52+
# should be added once repo is public
53+
# - name: Generate artifact attestation
54+
# uses: actions/attest-build-provenance@v2
55+
# with:
56+
# subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
57+
# subject-digest: ${{ steps.push.outputs.digest }}
58+
# push-to-registry: true

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,21 @@ sql-data-guard is also available as a Docker image, which can be used to run the
9999
To run the sql-data-guard Docker container, use the following command:
100100

101101
```bash
102-
docker run -d --name sql-data-guard -p 8080:8080 ThalesGroup/sql-data-guard:latest
102+
docker run -d --name sql-data-guard -p 5000:5000 ghcr.io/thalesgroup/sql-data-guard
103103

104104
### Calling the Docker Container Using REST API
105105

106106
Once the `sql-data-guard` Docker container is running, you can interact with it using its REST API. Below is an example of how to verify an SQL query using `curl`:
107107

108108
```bash
109-
curl -X POST http://localhost:8080/verify_sql \
109+
curl -X POST http://localhost:5000/verify-sql \
110110
-H "Content-Type: application/json" \
111111
-d '{
112-
"query": "SELECT * FROM orders WHERE account_id = 123",
112+
"sql": "SELECT * FROM orders WHERE account_id = 123",
113113
"config": {
114114
"tables": [
115115
{
116-
"name": "orders",
116+
"table_name": "orders",
117117
"columns": ["id", "product_name", "account_id"],
118118
"restrictions": [{"column": "account_id", "value": 123}]
119119
}

0 commit comments

Comments
 (0)