Skip to content

Commit

Permalink
Merge pull request #19 from slalombuild/chore/layout-improvement
Browse files Browse the repository at this point in the history
Chore/repo layout improvement
  • Loading branch information
davenicoll-slalom committed Jun 2, 2023
2 parents c9cd8d6 + 49095e3 commit 1c226ad
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
docker:
- "Dockerfile/*"
- "images/*"
- ".github/workflows/docker*"

documentation:
- "**/*.md"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/docker-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches: ["main"]
paths:
- "Dockerfile/**"
- "images/**"
schedule:
- cron: "0 2 * * 0" # Weekly on Sundays at 02:00

Expand All @@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile/standard-alpine-amd64 --no-cache -t standard-alpine-amd64:${{ github.sha }}
run: docker build . --file images/standard-alpine-amd64/Dockerfile --no-cache -t standard-alpine-amd64:${{ github.sha }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand All @@ -51,7 +51,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
buildoptions: "--compress --force-rm"
dockerfile: Dockerfile/standard-alpine-amd64
dockerfile: images/standard-alpine-amd64/Dockerfile
tags: "latest,${{ env.IMAGE_TAG }}"

standard-ubuntu:
Expand All @@ -61,7 +61,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile/standard-ubuntu-amd64 --no-cache -t standard-ubuntu-amd64:${{ github.sha }}
run: docker build . --file images/standard-ubuntu-amd64/Dockerfile --no-cache -t standard-ubuntu-amd64:${{ github.sha }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand All @@ -87,7 +87,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
buildoptions: "--compress --force-rm"
dockerfile: Dockerfile/standard-ubuntu-amd64
dockerfile: images/standard-ubuntu-amd64/Dockerfile
tags: "latest,${{ env.IMAGE_TAG }}"

full-alpine:
Expand All @@ -97,7 +97,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile/full-alpine-amd64 --no-cache -t full-alpine-amd64:${{ github.sha }}
run: docker build . --file images/full-alpine-amd64/Dockerfile --no-cache -t full-alpine-amd64:${{ github.sha }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand All @@ -122,7 +122,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
buildoptions: "--compress --force-rm"
dockerfile: Dockerfile/full-alpine-amd64
dockerfile: images/full-alpine-amd64/Dockerfile
tags: "latest,${{ env.IMAGE_TAG }}"

full-ubuntu:
Expand All @@ -132,7 +132,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile/full-ubuntu-amd64 --no-cache -t full-ubuntu-amd64:${{ github.sha }}
run: docker build . --file images/full-ubuntu-amd64/Dockerfile --no-cache -t full-ubuntu-amd64:${{ github.sha }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand All @@ -157,5 +157,5 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
buildoptions: "--compress --force-rm"
dockerfile: Dockerfile/full-ubuntu-amd64
dockerfile: images/full-ubuntu-amd64/Dockerfile
tags: "latest,${{ env.IMAGE_TAG }}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1c226ad

Please sign in to comment.