Skip to content
Snippets Groups Projects
Commit f067c5c7 authored by David Byers's avatar David Byers
Browse files

More CI/CD. #force-build

parent 6cc0453d
No related branches found
No related tags found
1 merge request!8Beta
Pipeline #33303 failed
...@@ -4,7 +4,6 @@ stages: ...@@ -4,7 +4,6 @@ stages:
- prepare - prepare
- build - build
- deploy - deploy
- pages
version: version:
image: python:3.7-stretch image: python:3.7-stretch
...@@ -31,8 +30,8 @@ prepare: ...@@ -31,8 +30,8 @@ prepare:
- beta - beta
.deploy:firefox: .build:firefox:
stage: deploy stage: build
image: node:lts-buster image: node:lts-buster
cache: cache:
paths: paths:
...@@ -49,12 +48,12 @@ prepare: ...@@ -49,12 +48,12 @@ prepare:
- safelinks-cleaner-firefox.xpi - safelinks-cleaner-firefox.xpi
deploy:firefox:beta: build:firefox:beta:
extends: .deploy:firefox extends: .build:firefox
variables: variables:
CHANNEL: unlisted CHANNEL: unlisted
rules: 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: changes:
- shared/** - shared/**
- firefox/** - firefox/**
...@@ -63,12 +62,12 @@ deploy:firefox:beta: ...@@ -63,12 +62,12 @@ deploy:firefox:beta:
deploy:firefox:master: build:firefox:master:
extends: .deploy:firefox extends: .build:firefox
variables: variables:
CHANNEL: listed CHANNEL: listed
rules: 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: changes:
- shared/** - shared/**
- firefox/** - firefox/**
...@@ -76,8 +75,8 @@ deploy:firefox:master: ...@@ -76,8 +75,8 @@ deploy:firefox:master:
- when: never - when: never
deploy:thunderbird:beta: build:thunderbird:beta:
stage: deploy stage: build
image: python:3.7-stretch image: python:3.7-stretch
script: script:
- apt-get -y update - apt-get -y update
...@@ -96,7 +95,7 @@ deploy:thunderbird:beta: ...@@ -96,7 +95,7 @@ deploy:thunderbird:beta:
- when: never - when: never
pages: pages:
stage: pages stage: deploy
script: script:
- cp -r site .public - cp -r site .public
- sed -i -e "s/%BUILDDATE%/$(date +'%Y-%m-%d %H:%M')/g" .public/index.html - sed -i -e "s/%BUILDDATE%/$(date +'%Y-%m-%d %H:%M')/g" .public/index.html
...@@ -105,8 +104,14 @@ pages: ...@@ -105,8 +104,14 @@ pages:
- mv .public public - mv .public public
- ls -lr public - ls -lr public
needs: needs:
- job: deploy:thunderbird:beta - project: $CI_PROJECT_PATH
- job: deploy:firefox:beta 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: artifacts:
paths: paths:
- public/ - public/
......
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