From 650a5663e8d1cc7d38a39420c0a45824e9ea8bcb Mon Sep 17 00:00:00 2001 From: "Junyoung, Sung" Date: Sat, 2 Mar 2024 15:10:39 +0900 Subject: [PATCH] Fix to todo --- .github/workflows/image-deploy.yaml | 7 +++---- Dockerfile | 10 +++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/image-deploy.yaml b/.github/workflows/image-deploy.yaml index 2e0769d..d6fe15a 100644 --- a/.github/workflows/image-deploy.yaml +++ b/.github/workflows/image-deploy.yaml @@ -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 }} diff --git a/Dockerfile b/Dockerfile index 0fd50bc..a97265b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ \ No newline at end of file +ADD public /sungjunyoung.github.io/public + +COPY --from=builder /sungjunyoung.github.io/public /usr/share/nginx/html