Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
Monthly Reports
Commits
7c812325
Verified
Commit
7c812325
authored
Nov 02, 2022
by
Levente Polyak
🚀
Browse files
ci: reuse build target when deploying pages
parent
80472fac
Pipeline
#36710
passed with stages
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7c812325
---
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment