From b477ea451e6938aca68f5e0d829e92c8ca7abf33 Mon Sep 17 00:00:00 2001 From: yyvf <yyvf@pm.me> Date: Sat, 29 Mar 2025 00:00:32 -0300 Subject: [PATCH] ci: testing --- .gitlab-ci.yml | 9 ++++++++- Dockerfile | 10 +++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 366ed23..a36699a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,14 @@ build: entrypoint: [""] script: - echo "{\"auths\":{\"harbor.c3sl.ufpr.br\":{\"username\":\"$HARBOR_USER\",\"password\":\"$HARBOR_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --single-snapshot --context . --destination harbor.c3sl.ufpr.br/root/docs --cache=false --compressed-caching=false --dockerfile "${CI_PROJECT_DIR}/Dockerfile" + - /kaniko/executor \ + --single-snapshot \ + --context . \ + --snapshot-mode=redo \ + --use-new-run \ + --destination harbor.c3sl.ufpr.br/root/docs \ + --cache=true --compressed-caching=false \ + --dockerfile "${CI_PROJECT_DIR}/Dockerfile" deploy: stage: deploy diff --git a/Dockerfile b/Dockerfile index f355801..d3e8e32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ WORKDIR /app COPY . . -RUN apt-get update -y && apt-get install -y golang -RUN npm install postcss postcss-cli autoprefixer -RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_extended_0.145.0_linux-amd64.deb -o hugo.deb -RUN dpkg -i hugo.deb -RUN hugo +RUN apt-get update -y && apt-get install -y golang && \ + npm install postcss postcss-cli autoprefixer && \ + curl -L https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_extended_0.145.0_linux-amd64.deb -o hugo.deb && \ + dpkg -i hugo.deb && \ + hugo FROM nginx:alpine -- GitLab