Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
safelinks-cleaner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
safelinks
safelinks-cleaner
Commits
f067c5c7
Commit
f067c5c7
authored
4 years ago
by
David Byers
Browse files
Options
Downloads
Patches
Plain Diff
More CI/CD. #force-build
parent
6cc0453d
No related branches found
No related tags found
1 merge request
!8
Beta
Pipeline
#33303
failed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-14
19 additions, 14 deletions
.gitlab-ci.yml
with
19 additions
and
14 deletions
.gitlab-ci.yml
+
19
−
14
View file @
f067c5c7
...
...
@@ -4,7 +4,6 @@ stages:
-
prepare
-
build
-
deploy
-
pages
version
:
image
:
python:3.7-stretch
...
...
@@ -31,8 +30,8 @@ prepare:
-
beta
.
deploy
:firefox
:
stage
:
deploy
.
build
:firefox
:
stage
:
build
image
:
node:lts-buster
cache
:
paths
:
...
...
@@ -49,12 +48,12 @@ prepare:
-
safelinks-cleaner-firefox.xpi
deploy
:firefox:beta
:
extends
:
.
deploy
:firefox
build
:firefox:beta
:
extends
:
.
build
:firefox
variables
:
CHANNEL
:
unlisted
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"
&&
$CI_COMMIT_BRANCH
==
"beta"'
-
if
:
'
(
$CI_PIPELINE_SOURCE
==
"push"
&&
$CI_COMMIT_BRANCH
==
"beta"
)
||
$CI_COMMIT_MESSAGE
=~
#force-build
'
changes
:
-
shared/**
-
firefox/**
...
...
@@ -63,12 +62,12 @@ deploy:firefox:beta:
deploy
:firefox:master
:
extends
:
.
deploy
:firefox
build
:firefox:master
:
extends
:
.
build
:firefox
variables
:
CHANNEL
:
listed
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"
&&
$CI_COMMIT_BRANCH
==
"master"'
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"
&&
$CI_COMMIT_BRANCH
==
"master"
||
$CI_COMMIT_MESSAGE
=~
#force-build
'
changes
:
-
shared/**
-
firefox/**
...
...
@@ -76,8 +75,8 @@ deploy:firefox:master:
-
when
:
never
deploy
:thunderbird:beta
:
stage
:
deploy
build
:thunderbird:beta
:
stage
:
build
image
:
python:3.7-stretch
script
:
-
apt-get -y update
...
...
@@ -96,7 +95,7 @@ deploy:thunderbird:beta:
-
when
:
never
pages
:
stage
:
pages
stage
:
deploy
script
:
-
cp -r site .public
-
sed -i -e "s/%BUILDDATE%/$(date +'%Y-%m-%d %H:%M')/g" .public/index.html
...
...
@@ -105,8 +104,14 @@ pages:
-
mv .public public
-
ls -lr public
needs
:
-
job
:
deploy:thunderbird:beta
-
job
:
deploy:firefox:beta
-
project
:
$CI_PROJECT_PATH
job
:
build:thunderbird:beta
ref
:
$CI_COMMIT_REF_NAME
artifacts
:
true
-
project
:
$CI_PROJECT_PATH
job
:
build:firefox:beta
ref
:
$CI_COMMIT_REF_NAME
artifacts
:
true
artifacts
:
paths
:
-
public/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment