File tree Expand file tree Collapse file tree 5 files changed +67
-16
lines changed
docker_runtime_with_passbolt_php Expand file tree Collapse file tree 5 files changed +67
-16
lines changed Original file line number Diff line number Diff line change 1+ name : Push & PR to the main branch
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+ workflow_dispatch :
11+
12+ jobs :
13+ lint :
14+ name : Passbolt CE Rootless-${{ matrix.rootless}} ${{ matrix.test_name }}
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ test_name :
19+ [
20+ " docker_image" ,
21+ " docker_runtime" ,
22+ " docker_runtime_no_envs" ,
23+ " docker_runtime_with_passbolt_php" ,
24+ ]
25+ rootless : [true, false]
26+ steps :
27+ - name : Checkout
28+ uses : actions/checkout@v4
29+ - name : Set up Ruby ${{ matrix.ruby-version }}
30+ uses : ruby/setup-ruby@v1
31+ with :
32+ ruby-version : " 3.3.5"
33+ bundler-cache : true
34+ - env :
35+ PASSBOLT_COMPONENT : " stable"
36+ PASSBOLT_FLAVOUR : " ce"
37+ ROOTLESS : ${{ matrix.rootless }}
38+ TEST_NAME : ${{ matrix.test_name }}
39+ run : |
40+ bundle exec rake spec:$TEST_NAME
Original file line number Diff line number Diff line change 11on :
22 push :
33 tags :
4- - ' * '
4+ - " * "
55jobs :
66 create-shasums :
77 runs-on : ubuntu-latest
1515 sha512sum docker-compose-pro.yaml > docker-compose-pro-SHA512SUM.txt &&
1616 sha512sum ../dev/docker-compose-dev.yaml > docker-compose-dev-SHA512SUM.txt &&
1717 sha512sum docker-compose-ce-postgresql.yaml > docker-compose-ce-postgresql-SHA512SUM.txt
18- - uses : ncipollo/release-action@v1
19- with :
20- artifacts : " docker-compose/docker-compose-*.yaml, docker-compose/*SHA512SUM.txt"
18+ - env :
19+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ name : Create Release
21+ run : |
22+ gh release create "${GITHUB_REF#refs/*/}" -t "${GITHUB_REF#refs/*/}" --notes-file RELEASE_NOTES.md docker-compose/docker-compose-*.yaml docker-compose/*SHA512SUM.txt
Original file line number Diff line number Diff line change 1+ Announcing the immediate availability of passbolt's docker image 4.1.0.
2+
3+ This is a minor change that fixes a logging issue where 500 errors were not redirected to standard output.
4+ Also, it fixes issues on image testing and added the release notes automation on GitHub.
Original file line number Diff line number Diff line change 4141 'Env' => [
4242 "DATASOURCES_DEFAULT_HOST=#{ @mysql . json [ 'NetworkSettings' ] [ 'IPAddress' ] } "
4343 ] ,
44- 'Binds' => $binds. append (
45- "#{ FIXTURES_PATH + '/passbolt.php' } :#{ PASSBOLT_CONFIG_PATH + '/passbolt.php' } " ,
46- "#{ FIXTURES_PATH + '/public-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure.key' } " ,
47- "#{ FIXTURES_PATH + '/private-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure_private.key' } "
48- ) ,
44+ 'HostConfig' => {
45+ 'Binds' => $binds. append (
46+ "#{ FIXTURES_PATH + '/passbolt.php' } :#{ PASSBOLT_CONFIG_PATH + '/passbolt.php' } " ,
47+ "#{ FIXTURES_PATH + '/public-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure.key' } " ,
48+ "#{ FIXTURES_PATH + '/private-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure_private.key' } "
49+ )
50+ } ,
51+
4952 'Image' => @image . id
5053 )
5154
6164 @container . kill
6265 end
6366
64- let ( :passbolt_host ) { @container . json [ 'NetworkSettings' ] [ 'IPAddress' ] }
65- let ( :uri ) { '/install' }
66- let ( :curl ) { "curl -skL -H 'Host: passbolt.local' https://#{ passbolt_host } :#{ $https_port} /#{ uri } " }
67+ let ( :passbolt_host ) { @container . json [ 'NetworkSettings' ] [ 'IPAddress' ] }
6768
6869 describe 'php service' do
6970 it 'is running supervised' do
9192 end
9293 end
9394
94- describe 'passbolt install' do
95+ describe 'passbolt healthcheck' do
96+ let ( :uri ) { '/healthcheck/status.json' }
97+ let ( :curl ) { "curl -sk -o /dev/null -w '%{http_code}' -H 'Host: passbolt.local' https://#{ passbolt_host } :#{ $https_port} /#{ uri } " }
9598 it 'shows correctly' do
96- expect ( command ( curl ) . stdout ) . to match ( /.*Passbolt is not configured yet!.*/ )
99+ expect ( command ( curl ) . stdout ) . to eq '200'
97100 end
98101 end
99102
Original file line number Diff line number Diff line change 5858 'PASSBOLT_HEALTHCHECK_ERROR=true'
5959 ] ,
6060 'Image' => @image . id ,
61- 'Binds' => $binds. append (
61+ 'HostConfig' => {
62+ 'Binds' => $binds. append (
6263 "#{ FIXTURES_PATH + '/passbolt-no-fingerprint.php' } :#{ PASSBOLT_CONFIG_PATH + '/passbolt.php' } " ,
6364 "#{ FIXTURES_PATH + '/public-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure.key' } " ,
6465 "#{ FIXTURES_PATH + '/private-test.key' } :#{ PASSBOLT_CONFIG_PATH + 'gpg/unsecure_private.key' } "
65- )
66+ )
67+ } ,
6668 )
6769
6870 @container . start
You can’t perform that action at this time.
0 commit comments