Verified Commit 7c812325 authored by Levente Polyak's avatar Levente Polyak 🚀
Browse files

ci: reuse build target when deploying pages

parent 80472fac
Pipeline #36710 passed with stages
in 20 seconds
---
default:
image: "archlinux:latest"
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- deploy
.hugo:
script:
- pacman -Syu --needed --noconfirm hugo git
- hugo
build:
stage: build
needs: []
script:
- pacman -Syu --needed --noconfirm hugo git
- hugo
artifacts:
paths:
- public
test:
extends: .hugo
stage: test
rules:
- if: $CI_PROJECT_PATH != "archlinux/monthly-reports" || $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
pages:
extends: .hugo
stage: deploy
needs:
- build
tags:
- secure
script:
- "true"
artifacts:
paths:
- public
rules:
- if: $CI_PROJECT_PATH == "archlinux/monthly-reports" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment