Skip to content

Commit

Permalink
ci: allow for building images from Dockerfile directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks authored and rebeccahum committed Oct 30, 2023
1 parent 6c68543 commit b53262d
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build container image
uses: docker/build-push-action@v5
with:
file: alpine/Dockerfile
context: alpine
platforms: linux/amd64,linux/arm64
push: ${{ github.base_ref == null }}
cache-from: type=gha,scope=alpine
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/dev-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: dev-tools
file: dev-tools/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.base_ref == null }}
cache-from: type=gha,scope=dev-tools
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/mu-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: mu-plugins
file: mu-plugins/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.base_ref == null }}
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build container image
uses: docker/build-push-action@v5
with:
file: nginx/Dockerfile
context: nginx
platforms: linux/amd64,linux/arm64
cache-from: type=gha,scope=nginx
cache-to: type=gha,mode=max,scope=nginx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/skeleton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Build container image
uses: docker/build-push-action@v5
with:
file: skeleton/Dockerfile
context: skeleton
platforms: linux/amd64,linux/arm64
push: ${{ github.base_ref == null }}
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build container image
uses: docker/build-push-action@v5
with:
file: traefik/Dockerfile
context: traefik
platforms: linux/amd64,linux/arm64
push: ${{ github.base_ref == null }}
cache-from: type=gha,scope=traefik
Expand Down
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM nginx:1.25.3-alpine@sha256:db353d0f0c479c91bd15e01fc68ed0f33d9c4c52f3415e63

RUN apk add --no-cache shadow

COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY default.conf /etc/nginx/conf.d/default.conf

0 comments on commit b53262d

Please sign in to comment.