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

More CI/CD.

parent a8cb1027
No related branches found
No related tags found
1 merge request!8Beta
Pipeline #33299 failed
...@@ -4,6 +4,7 @@ stages: ...@@ -4,6 +4,7 @@ stages:
- prepare - prepare
- build - build
- deploy - deploy
- pages
version: version:
image: python:3.7-stretch image: python:3.7-stretch
...@@ -54,10 +55,11 @@ deploy:firefox:beta: ...@@ -54,10 +55,11 @@ deploy:firefox:beta:
CHANNEL: unlisted CHANNEL: unlisted
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "beta"' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "beta"'
- changes: changes:
- shared/** - shared/**
- firefox/** - firefox/**
- when: always when: always
- when: never
...@@ -67,10 +69,11 @@ deploy:firefox:master: ...@@ -67,10 +69,11 @@ deploy:firefox:master:
CHANNEL: listed CHANNEL: listed
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"'
- changes: changes:
- shared/** - shared/**
- firefox/** - firefox/**
- when: always when: always
- when: never
deploy:thunderbird: deploy:thunderbird:
...@@ -86,14 +89,14 @@ deploy:thunderbird: ...@@ -86,14 +89,14 @@ deploy:thunderbird:
- safelinks-cleaner-thunderbird.xpi - safelinks-cleaner-thunderbird.xpi
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "beta"' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "beta"'
- changes: changes:
- shared/** - shared/**
- thunderbird/** - thunderbird/**
- when: always when: always
- when: never
pages: pages:
stage: deploy stage: pages
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
......
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