Skip to content

Commit fb708d9

Browse files
committed
fix: normalize environment variable names in Docker workflow
1 parent 4f8fa56 commit fb708d9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/docker-build-and-scan.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
build-and-scan:
1010
runs-on: ubuntu-latest
1111
env:
12-
DOCKER_CONTEXT: .
13-
DOCKERFILE: Dockerfile
14-
DOCKER_LOAD: true
15-
TAGS: sample-python-app:${{ github.sha }}
12+
DOCKER_PATH_CONTEXT: .
13+
DOCKER_BUILD_DOCKERFILE: Dockerfile
14+
DOCKER_LOAD_BOOL: true
15+
DOCKER_TAGS: sample-python-app:${{ github.sha }}
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
@@ -24,14 +24,14 @@ jobs:
2424
id: build-image
2525
uses: docker/build-push-action@v6
2626
with:
27-
context: ${{ env.DOCKER_CONTEXT }}
28-
file: ${{ env.DOCKERFILE }}
29-
load: ${{ env.DOCKER_LOAD }}
30-
tags: ${{ env.TAGS }}
27+
context: ${{ env.DOCKER_PATH_CONTEXT }}
28+
file: ${{ env.DOCKER_BUILD_DOCKERFILE }}
29+
load: ${{ env.DOCKER_LOAD_BOOL }}
30+
tags: ${{ env.DOCKER_TAGS }}
3131
- name: Run Trivy vulnerability scanner
3232
uses: aquasecurity/trivy-action@0.33.1
3333
with:
34-
image-ref: ${{ env.TAGS }}
34+
image-ref: ${{ env.DOCKER_TAGS }}
3535
format: 'table'
3636
exit-code: '1'
3737
ignore-unfixed: true

0 commit comments

Comments
 (0)