Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/github_build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
push:
tags:
- '*.*.*'

name: Create Github Release

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
env:
COMPOSER_ALLOW_SUPERUSER: 1
APP_ENV: prod
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Composer install
run: |
docker network create frontend
docker compose run --rm --user=root --env APP_ENV=prod phpfpm composer install --no-dev -o --classmap-authoritative
docker compose run --rm --user=root --env APP_ENV=prod phpfpm composer clear-cache

- name: Make assets dir
run: |
mkdir -p ../assets

- name: Create archive
run: tar -zcf --exclude='.git' ../assets/${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz ./

- name: Create checksum
run: |
cd ../assets
sha256sum ${{ github.event.repository.name }}-${{ github.ref_name }}.tar.gz > ../assets/checksum.txt

- name: Create a release in GitHub and uploads assets
run: gh release create ${{ github.ref_name }} --verify-tag --generate-notes ../assets/*.*
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ See [keep a changelog] for information about writing changes to this log.

## [Unreleased]

## [0.1.1]

* Bumped `itk-dev/vault` required version.
* Added action to auto create github release
* Added Licence

## [0.1.0]

* Bumped library version for better usage for composer constraints.
Expand Down Expand Up @@ -35,7 +41,8 @@ See [keep a changelog] for information about writing changes to this log.

[keep a changelog]: https://keepachangelog.com/en/1.1.0/
[Unreleased]: https://github.com/itk-dev/vault-bundle/compare/0.1.0...head
[0.0.4]: https://github.com/itk-dev/vault-library/compare/0.0.4...0.1.0
[0.1.1]: https://github.com/itk-dev/vault-library/compare/0.1.0...0.1.1
[0.1.0]: https://github.com/itk-dev/vault-library/compare/0.0.4...0.1.0
[0.0.4]: https://github.com/itk-dev/vault-library/compare/0.0.3...0.0.4
[0.0.3]: https://github.com/itk-dev/vault-library/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/itk-dev/vault-library/compare/0.0.1...0.0.2
Expand Down
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 ITK Development

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Vault bundle
# Vault Bundle

[![Github](https://img.shields.io/badge/source-itk--dev/vault--bundle-blue?style=flat-square)](https://github.com/itk-dev/vault-bundle)
[![Release](https://img.shields.io/packagist/v/itk-dev/vault-bundle.svg?style=flat-square&label=release)](https://packagist.org/packages/itk-dev/vault-bundle)
[![PHP Version](https://img.shields.io/packagist/php-v/itk-dev/vault-bundle.svg?style=flat-square&colorB=%238892BF)](https://www.php.net/downloads)
[![Build Status](https://img.shields.io/github/actions/workflow/status/itk-dev/vault-bundle/pr.yaml?label=CI&logo=github&style=flat-square)](https://github.com/itk-dev/vault-bundle/actions?query=workflow%3A%22Test+%26+Code+Style+Review%22)
[![Read License](https://img.shields.io/packagist/l/itk-dev/vault-bundle.svg?style=flat-square&colorB=darkcyan)](https://github.com/itk-dev/vault-bundle/blob/master/LICENSE.md)
[![Package downloads on Packagist](https://img.shields.io/packagist/dt/itk-dev/vault-bundle.svg?style=flat-square&colorB=darkmagenta)](https://packagist.org/packages/itk-dev/vault-bundle/stats)

This bundle enables Symfony sites to interact with HashiCorp Vault using the
"approle" authentication method. It allows fetching secrets and provides the
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "itk-dev/vault-bundle",
"description": "Symfony bundle for vault",
"description": "Symfony bundle for HashiCorp Vault",
"license": "MIT",
"type": "symfony-bundle",
"authors": [
Expand All @@ -13,12 +13,12 @@
],
"require": {
"php": "^8.0",
"symfony/http-client": "^6.4|^7.0|^7.1|^7.2",
"symfony/http-client": "^6.4|^7.0",
"nyholm/psr7": "^1.8",
"itk-dev/vault": "^0.0.5",
"symfony/dependency-injection": "^6.4|^7.0|^7.1|^7.2",
"symfony/config": "^6.4|^7.0|^7.1|^7.2",
"symfony/http-kernel": "^6.4|^7.0|^7.1|^7.2"
"itk-dev/vault": "^0.1.0",
"symfony/dependency-injection": "^6.4|^7.0",
"symfony/config": "^6.4|^7.0",
"symfony/http-kernel": "^6.4|^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.64"
Expand Down
Loading