Skip to content

Commit

Permalink
chore(ci): clean up release jobs
Browse files Browse the repository at this point in the history
(cherry picked from commit e64ec30)
  • Loading branch information
tsusanka committed Mar 4, 2021
1 parent a3020c2 commit 50633a7
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 62 deletions.
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ include:
- ci/environment.yml
- ci/prebuild.yml
- ci/packages/components.yml
- ci/packages/suite.yml
- ci/packages/suite-web.yml
- ci/packages/suite-desktop.yml
- ci/packages/suite-native.yml
Expand Down
1 change: 1 addition & 0 deletions ci/packages/landing-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ landing-page deploy dev:
tags:
- deploy

# to be removed after beta-wallet is officially killed
landing-page deploy staging-wallet:
stage: deploy to staging
only:
Expand Down
15 changes: 15 additions & 0 deletions ci/packages/suite-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ suite-desktop build mac codesign:
platform: mac
<<: *build
<<: *build_nix
artifacts:
paths:
- ${artifact}
- latest*.yml
expire_in: 7 days

suite-desktop build linux:
only:
Expand Down Expand Up @@ -97,6 +102,11 @@ suite-desktop build linux codesign:
platform: linux
<<: *build
<<: *build_nix
artifacts:
paths:
- ${artifact}
- latest*.yml
expire_in: 7 days

suite-desktop build windows:
only:
Expand Down Expand Up @@ -129,6 +139,11 @@ suite-desktop build windows codesign:
platform: win
<<: *build
<<: *build_nix
artifacts:
paths:
- ${artifact}
- latest*.yml
expire_in: 7 days

suite-desktop deploy dev:
stage: deploy to dev
Expand Down
32 changes: 6 additions & 26 deletions ci/packages/suite-web-landing.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
.run_everything_rules: &run_everything_rules
refs:
- develop
- releases
- schedules
- /^release\//

suite-web-landing build dev:
stage: build
script:
Expand All @@ -19,7 +12,12 @@ suite-web-landing build dev:
suite-web-landing build stable:
stage: build
only:
<<: *run_everything_rules
refs:
- develop
- releases
- schedules
- /^release\//
- codesign
script:
- yarn install --frozen-lockfile --cache-folder .yarn --prefer-offline
- yarn build:libs
Expand All @@ -30,24 +28,6 @@ suite-web-landing build stable:
- packages/suite-web-landing/scripts/s3sync.sh
- packages/suite-web-landing/build

suite-web-landing deploy staging-suite:
stage: deploy to staging
only:
<<: *run_everything_rules
needs:
- suite-web-landing build stable
environment:
name: ${CI_BUILD_REF_NAME}-staging-suite
url: ${STAGING_SUITE_SERVER_URL}
before_script: []
when: manual
script:
- source ${STAGING_SUITE_DEPLOY_KEYFILE}
- cd packages/suite-web-landing
- ./scripts/s3sync.sh staging-suite
tags:
- deploy

suite-web-landing deploy dev:
stage: deploy to dev
variables:
Expand Down
1 change: 1 addition & 0 deletions ci/packages/suite-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ suite-web build dev:
paths:
- packages/suite-web/build

# to be removed after beta-wallet is officially killed
suite-web build beta:
stage: build
only:
Expand Down
7 changes: 0 additions & 7 deletions ci/packages/suite.yml

This file was deleted.

42 changes: 14 additions & 28 deletions ci/releases.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,12 @@
# Upload UNSIGNED binaries to staging
suite-web deploy staging-suite:
stage: deploy to staging
needs:
- suite-web build stable
- suite-desktop build mac
- suite-desktop build linux
- suite-desktop build windows
environment:
name: ${CI_BUILD_REF_NAME}-staging-suite
url: ${STAGING_SUITE_SERVER_URL}
before_script: []
only:
- /^release\//
when: manual
script:
- source ${STAGING_SUITE_DEPLOY_KEYFILE}
- mkdir -p packages/suite-web/build/static/desktop
- 'rsync --delete -va "${DESKTOP_APP_NAME}"-*.AppImage ./packages/suite-web/build/static/desktop || :'
- 'rsync --delete -va "${DESKTOP_APP_NAME}"-*.dmg ./packages/suite-web/build/static/desktop || :'
- 'rsync --delete -va "${DESKTOP_APP_NAME}"-*.exe ./packages/suite-web/build/static/desktop || :'
- cd packages/suite-web
- ./scripts/s3sync.sh staging-suite
tags:
- deploy

# Upload signed binaries to staging
suite-desktop codesign deploy staging-suite:
# Upload everything to staging
suite codesign deploy staging-suite:
stage: deploy to staging
needs:
- suite-web build stable
- suite-desktop build mac codesign
- suite-desktop build linux codesign
- suite-desktop build windows codesign
- suite-web-landing build stable
environment:
name: ${CI_BUILD_REF_NAME}-staging-suite
url: ${STAGING_SUITE_SERVER_URL}
Expand All @@ -51,6 +26,9 @@ suite-desktop codesign deploy staging-suite:
- 'rsync --delete -va "${DESKTOP_APP_NAME}"-*.exe.asc ./packages/suite-web/build/static/desktop || :'
- cd packages/suite-web
- ./scripts/s3sync.sh staging-suite
- cd -
- cd packages/suite-web-landing
- ./scripts/s3sync.sh staging-suite
tags:
- deploy

Expand All @@ -73,3 +51,11 @@ suite-desktop github release:
- release-it --ci --config=ci/release-it.yml --disable-metrics
tags:
- deploy

release commit messages:
stage: deploy to staging
only:
refs:
- /^release\//
script:
- ci/scripts/check_release_commit_messages.sh

0 comments on commit 50633a7

Please sign in to comment.