Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
acfcd6bf
Commit
acfcd6bf
authored
Jan 26, 2024
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "release-qa" step in the deployment pipeline
Keep only the replacement "release-staging" step instead.
parent
4fd83bad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
46 deletions
+3
-46
release.yml
.github/workflows/release.yml
+3
-46
No files found.
.github/workflows/release.yml
View file @
acfcd6bf
...
@@ -22,54 +22,11 @@ jobs:
...
@@ -22,54 +22,11 @@ jobs:
uses
:
./.github/workflows/continuous-integration.yml
uses
:
./.github/workflows/continuous-integration.yml
name
:
continuous integration
name
:
continuous integration
release-qa
:
needs
:
continuous-integration
runs-on
:
ubuntu-latest
environment
:
qa
env
:
NOTEBOOK_APP_URL
:
https://qa.hypothes.is/notebook
PROFILE_APP_URL
:
https://qa.hypothes.is/user-profile
SIDEBAR_APP_URL
:
https://qa.hypothes.is/app.html
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
Cache the node_modules dir
uses
:
actions/cache@v3
with
:
path
:
node_modules
key
:
${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock') }}
-
name
:
Install
run
:
yarn install --immutable
-
name
:
Get version
run
:
|
git fetch --tags --quiet
LAST_COMMIT_HASH=$(git show HEAD --no-patch --format="%h")
QA_VERSION=$(git tag --list | sort --version-sort --reverse | head -n1 | tail -c +2)-$LAST_COMMIT_HASH
echo "QA_VERSION=$QA_VERSION" >> $GITHUB_ENV
-
name
:
Build app
run
:
|
yarn version "$QA_VERSION"
make clean build
-
name
:
Upload files to Sentry
env
:
SENTRY_AUTH_TOKEN
:
${{ secrets.sentry_auth_token }}
run
:
|
SENTRY_CMD="yarn run sentry-cli releases --org hypothesis --project client"
$SENTRY_CMD new $QA_VERSION
$SENTRY_CMD files $QA_VERSION upload-sourcemaps --url-prefix $CDN_URL/$QA_VERSION/build/scripts/ build/scripts
$SENTRY_CMD finalize $QA_VERSION
-
name
:
Deploy to S3
env
:
AWS_ACCESS_KEY_ID
:
${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY
:
${{ secrets.aws_secret_access_key }}
run
:
scripts/deploy-to-s3.js --bucket ${{ env.S3_BUCKET }} --tag qa --no-cache-entry
release-staging
:
release-staging
:
needs
:
continuous-integration
needs
:
continuous-integration
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
# This presently uses the
same AWS / Sentry auth as QA. We should eventually
# This presently uses the
AWS / Sentry auth from the old "QA" environment.
# rename that environment or create a new one.
#
We should eventually
rename that environment or create a new one.
environment
:
qa
environment
:
qa
env
:
env
:
NOTEBOOK_APP_URL
:
https://staging.hypothes.is/notebook
NOTEBOOK_APP_URL
:
https://staging.hypothes.is/notebook
...
@@ -112,7 +69,7 @@ jobs:
...
@@ -112,7 +69,7 @@ jobs:
release-prod
:
release-prod
:
if
:
github.ref_name == 'main'
if
:
github.ref_name == 'main'
needs
:
release-
qa
needs
:
release-
staging
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
environment
:
production
environment
:
production
env
:
env
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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