1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
Commit Graph

55 Commits

Author SHA1 Message Date
Oscar Hinton
8d6c49f656
Add lock files for NuGet (#1855) 2022-02-10 15:40:31 +01:00
Oscar Hinton
f246f51249
Remove node from main test task (#1856) 2022-02-10 10:14:45 +01:00
Joseph Flinn
a4ae38fc95
Rename hotfix branch to hotfix-rc (#1854) 2022-02-09 08:17:17 -08:00
Joseph Flinn
85797bde07
Patch/docker build (#1825)
* Patch to fix the broken dockerhub push

* undoing a keyboard slip
2022-01-24 12:42:14 -08:00
Joseph Flinn
41f3e27ace
Feature/feature branch docker images (#1824)
* enabling ACR images for feature branches

* fixing typo in docker tag name

* Adding a workflow that cleans up the docker images from a branch when it gets merged in.

* Updating job name

* Fixing trigger syntax issue

* adding a manual trigger

* Removing the copy + paste mistake

* Adding non-tty confirmation for the deletion of the image

* Un-paralellizing workflow

* fixing the yq options

* trying a different way to get the var data

* trying with quotes

* trying it for real

* adding in a message and testing deleting a tag that doesn't exist

* handling the case where the tag doesn't exist

* fixing a typo

* logging some vaules to try to get some answers

* trying a different way of passing the var into jq

* final cleanup and test

* fixing linting issues

* normalizing the ACR and Dockerhub pushes

* removing the manual trigger after done testing

* Update .github/workflows/build.yml

removing missed an added whitespace

Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>

* fixing the EventsProcessor docker repo issue

* switching repos for EventsProcessor

Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
2022-01-24 11:12:37 -08:00
Vince Grassia
44b993ed38
Remove hash from image tag (#1772) 2021-12-16 11:47:01 -05:00
Oscar Hinton
23b0a1f9df
Run dotnet format (#1764) 2021-12-16 15:35:09 +01:00
Oscar Hinton
61dc65aa59
Add dotnet-format tool (#1756) 2021-12-16 08:48:30 +01:00
Vince Grassia
4ccbf091fb
Remove check for EventsProcessor (#1749) 2021-12-08 00:19:15 -05:00
Vince Grassia
dae0029dbb
Switch from AWS ECR to Azure ACR in our workflows (#1747) 2021-12-07 23:28:13 -05:00
Vince Grassia
c660f8bf00
Fix Docker Notary (#1717) 2021-11-15 13:53:53 -05:00
Vince Grassia
27351762de
Upload Docker images to AWS ECR Nonprod Repositories (#1713) 2021-11-15 13:23:51 -05:00
Vince Grassia
c07794e907
Change Release workflow to allow releases from 'rc' and 'hotfix' branches (#1690) 2021-11-08 13:39:32 -05:00
Joseph Flinn
52d1bade06
Hotfix/release workflow (#1671)
* fixing release workflow app service deploys

* adding the release branch as a conditional to the docker-stub build

* Add in missing 'if' statement for 'release' branch in Docker Stub step

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-10-27 08:45:33 -07:00
Joseph Flinn
e2c8fa7002
Replacing the DCT setup. There was a sneaky line that was different which is making our build of the EventsProcessor image break (#1667) 2021-10-26 15:02:19 -07:00
Joseph Flinn
9a629a410c
Allow Docker access to new release branching strategy (#1666)
* allowing the new release branch to push its docker images

* Switching to our action to set up DCT
2021-10-26 14:22:47 -07:00
Joseph Flinn
f3d6a43025
Change protected release branch to release (#1656)
* Adding a contraint around the new release branch strategy

* Adding a constraint on what CI code can be used to release the release branch

* updating the self host docker image building and releasing

* removing master branch release ci code execution

* updating some verbiage
2021-10-22 08:41:38 -07:00
Vince Grassia
86755e130c
Add Slack notifications constraint (#1639) 2021-10-15 13:07:22 -04:00
Vince Grassia
e3a1482e3e
Add Slack alerts for Build workflow failures (#1633) 2021-10-13 15:50:40 -04:00
Joseph Flinn
0cc59f3cfa
Fixing the docker image build (#1618)
* Fixing the docker image build

* fixing the download path

* adding conditional on the docker image build artifact setup
2021-10-06 10:21:35 -07:00
Oscar Hinton
79447b6671
Remove Business Portal (#1614) 2021-10-06 10:39:13 +02:00
Vince Grassia
fccfce1048
Fix bug in Build workflow (#1616)
* Fix uploading correct Zip artifact in build

* Change path to uploaded artifacts

* Remove Zip archive step from QA Deploy workflow
2021-10-05 16:40:01 -04:00
Matt Gibson
bd297fb7a2
SqlServer split manage collection permission (#1594)
* SqlServer split manage collection permission

* Clarify names

* Test claims generation

* Test permission serialization

* Simplify claims building

* Use new collections permissions

* Throw on use of deprecated permissions

* Lower case all claims

* Remove todos

* Clean nonexistent project from test solution

* JsonIgnore for both system and newtonsoft json

* Make migrations more robust to multiple runs

* remove duplicate usings

* Remove obsolete permissions

* Test solutions separately to detect failures

* Handle dos line endings

* Fix collections create/update permissions

* Change restore cipher to edit permissions

* Improve formatting

* Simplify map

* Refactor test
2021-10-05 11:12:05 -05:00
Vince Grassia
55fa4a5f63
Update QA Deploy workflow with fix for zip archive (#1612) 2021-09-30 12:12:42 -04:00
Oscar Hinton
fbf3e0dcdc
Run full test suite (#1597)
* Run all tests
2021-09-27 19:34:55 +02:00
Joseph Flinn
1559e2bbe4
Hotfix BTR model (#1600)
* unzipping the build artifact before building docker image

* adding some debugging

* trying without the unzip. Seems to unzip itself

* fixing the two remaining issues

* disabling the docker image build step
2021-09-27 07:23:06 -07:00
Joseph Flinn
dac3b3e893
New BTR pipeline model (#1599)
Splitting out the build artifacts and the docker containers. Making the QA deploy more streamlined with the new build pipeline. Disabling the prod workflow, but keeping it until we fully migrate our deploy processes over to the new flow.
2021-09-24 15:04:14 -07:00
Vince Grassia
1d3c7cc936
Update workflows with linter suggestions (#1562)
* Update workflows with linter suggestions

* Update workflows with linter suggestions
2021-09-02 16:03:28 -04:00
Matt Gibson
842a1c2e37
Tweak provider views (#1499)
* Add Organizations to provider views

Remove enabled/disabled toggle from provider. It's currently not used.

* Remove provider Delete

There are implications to deleting providers on the organizations they manage.
We want to think through this flow before allowing delete from the
admin portal.

* Use toastr to display production exception messages.

Update build actions to upgrade npm to v7.

Use a custom error handler in production which displays a toast of the
exception message and redirect to the offending page

* Clarify provider create error message
2021-08-10 11:28:00 -05:00
Joseph Flinn
7cfa54ba14
Adding logic to skip uploading a zip file if it does not exist (#1431) 2021-07-02 13:34:20 -07:00
Joseph Flinn
051aab805b
Fix the docker stub upload task (#1430) 2021-07-02 10:22:51 -07:00
Joseph Flinn
5d7530a6a5
Hotfix az login build workflow (#1394)
* adding in AZ QA login step

* clarifying the task names

* fixing syntax error
2021-06-14 12:33:36 -07:00
Joseph Flinn
0be710f78a
Hotfix az login build workflow (#1393)
* adding in AZ QA login step

* clarifying the task names
2021-06-14 12:22:57 -07:00
Joseph Flinn
2fe31533a0
removing the unneeded env (#1392) 2021-06-14 11:38:17 -07:00
Joseph Flinn
c3642adbdf
QA eventsprocessor (#1389)
* adding the EventProcessor docker container

* fixing the matrix name in the setup step

* changing the name of the EventsProcessor application

* adding the missing docker repo login as well as changing how we are setting the docker trust environment variables
2021-06-14 11:11:05 -07:00
Vince Grassia
21003c61ab
Update output directory for dotnet builds (#1358)
* Update output directory for dotnet builds

* Update Dotnet build output path
2021-05-27 12:16:12 -04:00
Vince Grassia
1900f52a34
Fix path in 'Build Docker images' step (#1356) 2021-05-27 11:11:34 -04:00
Vince Grassia
0faf97331f
Update Build and Release workflows (#1349)
* Fix K8S-Proxy image build and tag

* Update build script to remove unused PUSH and TAG features

* Update workflows

- Remove build.sh from root of repo as it's no longer used
- Update workflows to use matrix feature for parallelization

* Add Docker image build step and other projects

* Remove csproj filenames from steps

* Fix typo

* Fix directory for k8s-proxy image

* Move Docker stub and uploads out of matrix

* Change to block-style sequence for service_name matrix

* Add missing quote character

* Fix working directories of Dotnet steps

* Update step name

* Add checkout repo step to Upload job

* Add 'dotnet tool restore' step

* Fix Swagger directory

* Fix Swagger build step

* Fix Swagger build step (again)
2021-05-27 10:32:36 -04:00
Vince Grassia
b806b64c10
Pin versions of actions in workflow (#1337) 2021-05-17 15:15:01 -04:00
Joseph Flinn
353b007bca
Update docker signing (#1310)
* removing the unneeded docker repo keys

* adding some testing code

* fixing notary install location

* installed notary in home directory without relying on the PATH var

* adding notary config for testing

* commenting out branch conditionals so that the pipeline will run a test on a non-master/rc branch

* trying to track down the docker trust files

* changing to the home directory to install notary

* testing with out all of the notary testing stuff

* uncommenting the code after testing

* updating the release workflow with the delegate-2 key
2021-05-11 12:49:08 -07:00
Joseph Flinn
a6265885ad
Automating Server Release/Deploy for QA Env (#1281)
* initial success caching test

* updating status testing

* fixing the fail check

* fixing bash if syntax

* changing the way of testing since you can't change workflow inputs between re-runs

* trying out different bash syntax

* removing the export to env

* adding in last run status check

* switching up the last_run_status file handling since it doesn't look like it is working correctly

* adding push trigger

* fixing typo

* adding date to the cache key and adding a bit more logging

* fixing restore key

* trying a different way of logging both successes and failures

* fixing typo

* reorganizing the random success/fail

* trying different bash

* fixing binary operator

* adding in success flag checks

* increasing the odds of success

* trying to fix weird problem

* changing dquotes to squotes

* testing failure and always() flow

* adding in a release pipeline

* adding in the manual trigger for the release pipeline

* fixing the bash for loop for tagging and switching to the rc image for release

* adding docker trust to the pull task

* fixing bash array typo

* removing build task

* adding the dotnet tool restore back in to hopefully restore swagger

* adding an Api build to build the swagger docs

* working on build workflow

* testing cache between jobs

* Adding in steps

* fixing the last line

* updating the build workflow

* adding manual trigger for build workflow

* moving the matrix values to the env section of the task

* changing the envs

* using env template replacement

* removing the unique id since I don't think I need it

* testing the cache

* commenting out the docker push

* adding the env vars back to the cache task

* adding envs to test

* fixing the path issue

* resetting the build workflow back to serial build/docker

* Adding in the qa release workflow

* removing unneccessary dependency

* parameterizing the project file names

* forcing gulp install

* installing gulp globally

* reorganizing to see if gulp works

* removing the awkward paths

* fixing typo

* commenting out all non-api matrix for easier testing

* trying to zip the build for deploy

* adding in the base path for the test

* replacing the web app name

* adding a specific slotname

* adding the env into the package path for the deployment

* trying to fix the zip

* setting up all of the other deploys

* switching the secrets over to be environment secrets

* adding in production automation with the deploys commented out

* removing the master branch from the QA deploy

* adding in the dependancy on the setup

* changing the tag

* trying a different ref

* renaming the deployment slot to staging

* trying a different slot name

* resetting the qa deploy to the original

* moving the secrets

* updating the qa deploy with the db reset/update stubs

* updating the deploy task dependencies

* adding missing update-db command placeholder

* trying a string for the inputs

* moving the input check into the steps instead of the job level so that the job completes

* testing azure kv

* fixing typo

* Change id to retrieve-secrets

* Fix typo

* testing the rest of the QA app service deployments

* updating the name of the QA AZ creds secret and migrating the disabled prod deploy jobs to use the prod AZ secrets

* adding in the additional key vault secrets and fixing some other mistakes

* fixing one of the other preview versions

* removing newline for testing commit

* fixing typo

* fixing a secret name typo

* moving the secrets to the env to test their outputs

* adding missing k

* Update build workflow with environment variables for Docker Trust

* removing the unneeded env vars

* Update build and release workflow using Azure secrets as env variables

* Clean up output of NuGet version

* Fix capitalization

* Fix variable names for Docker Trust Setup

* fixing the dashes in the env ids

* switching the dev tag for qa when pushing

* commenting out the test for the pipeline testing

* removing all of the testing code and blockers

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-05-04 13:41:49 -07:00
Joseph Flinn
7bb26a7203
K8s Proxy CI Build (#1233)
* adding the new k8s-proxy container to the server build

* updating the file path fore the new dockerfile
2021-03-23 11:19:01 -07:00
Joseph Flinn
c19121948d
adding docker to the rc branch workflow (#1183) 2021-03-04 13:21:27 -08:00
Joseph Flinn
41341d6807
adding in the docker push for the rc images (#1182) 2021-03-04 09:50:32 -08:00
Joseph Flinn
8ad9a42854
adding release branch build and docker tag/push (#1181) 2021-03-04 09:15:30 -08:00
Joseph Flinn
7d3fb55b2d
Add docker notary (#1036)
* updating the Build Action to sign docker images

* moving the DCT env var placement

* adding in some temp_test values to build/push the dev images

* testing dev docker signing

* debugging missing file

* adding manual creation of ~/.docker/trust/private since we are not building with DCT enabled

* updating the secret name for the delegation key passphrase

* removing debugging code
2020-12-09 10:58:58 -08:00
Kyle Spearrin
60973e3051 docker version bump and update setup-msbuild 2020-11-16 22:44:34 -05:00
Kyle Spearrin
3b9f625bc1 run tool restore on linux build 2020-07-17 11:35:36 -04:00
Kyle Spearrin
998a56fc57 fix swagger artifact job name 2020-07-17 11:27:09 -04:00
Kyle Spearrin
a5d8c92c98 upload release assets 2020-07-17 11:24:49 -04:00