Skip to content

Commit

Permalink
Add build
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjunyoung committed Mar 2, 2024
1 parent 2356c14 commit 9f6db00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/image-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4
- name: Docker build & push to dev
run: |
docker run -v $(pwd):/src klakegg/hugo:alpine --minify
docker buildx build --platform=linux/aarch64 -t docker.sungjunyoung.dev/blog:latest .
docker push docker.sungjunyoung.dev/blog:latest
- uses: actions-hub/kubectl@master
Expand Down
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
FROM klakegg/hugo:alpine as builder

WORKDIR /sungjunyoung.github.io
ADD . /sungjunyoung.github.io
RUN hugo --minify

FROM nginx:1.14.2

ADD public /sungjunyoung.github.io/public
COPY --from=builder /sungjunyoung.github.io/public /usr/share/nginx/html

0 comments on commit 9f6db00

Please sign in to comment.