Skip to content

Commit

Permalink
Test docker-buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
ichizok committed Apr 3, 2024
1 parent bbe466b commit 09d6c8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.git
.gitignore
target
!target/*.txt
README.md
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ jobs:

- name: Preparation
run: |
mkdir -p app
echo hello > app/index.txt
mkdir -p target
echo hello > target/index.txt
find -type f -not -path './.*/*' | sort
- name: Build Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: "buildtest:latest"
outputs: type=image,oci-mediatypes=true,compression=gzip,compression-level=3,force-compression=true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/distroless/static:nonroot

WORKDIR /nonroot
COPY app/index.txt /webapp/index.txt
COPY target/index.txt /webapp/index.txt

0 comments on commit 09d6c8f

Please sign in to comment.