Skip to content

Commit

Permalink
Fix to todo
Browse files Browse the repository at this point in the history
  • Loading branch information
sungjunyoung committed Mar 2, 2024
1 parent 37da5a6 commit 650a566
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/image-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ 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
# TODO
# docker build --platform=linux/aarch64 -t docker.sungjunyoung.dev/blog:latest .
# docker push docker.sungjunyoung.dev/blog:latest
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
Expand Down
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
FROM klakegg/hugo:alpine as builder

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

FROM nginx:1.14.2

COPY public/* /usr/share/nginx/html/
ADD public /sungjunyoung.github.io/public

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

0 comments on commit 650a566

Please sign in to comment.