Skip to content
Snippets Groups Projects
Commit b477ea45 authored by yyvf's avatar yyvf
Browse files

ci: testing

parent 3f0acf8b
No related branches found
No related tags found
No related merge requests found
Pipeline #41574 failed
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment