diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54249606d..93785a5a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ on: branches: - master tags: - - 'bpa**' # Push events to every tag prefixed with bpa, including hierarchical tags like v1.0/beta + - '**' jobs: build: @@ -80,11 +80,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} - name: Login to GitHub Container Registry uses: docker/login-action@v1 - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} with: registry: ghcr.io username: ${{ github.repository_owner}} @@ -92,7 +92,7 @@ jobs: - name: Prepare docker tags license image uses: Surgo/docker-smart-tag-action@v1 - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} id: preparetagslicense with: docker_image: ghcr.io/hyperledger-labs/business-partner-agent-license @@ -100,7 +100,7 @@ jobs: tag_with_sha: true - name: Build and push license container - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} uses: docker/build-push-action@v2 with: context: . @@ -110,7 +110,7 @@ jobs: - name: Prepare docker images bpa uses: Surgo/docker-smart-tag-action@v1 - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} id: preparetags with: docker_image: ghcr.io/hyperledger-labs/business-partner-agent @@ -118,7 +118,7 @@ jobs: tag_with_sha: true - name: Build and push container - if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} uses: docker/build-push-action@v2 with: context: . diff --git a/PUBLISHING.md b/PUBLISHING.md index 9269b9482..7112bd3dc 100644 --- a/PUBLISHING.md +++ b/PUBLISHING.md @@ -8,9 +8,9 @@ The release process is therefore split into two steps: Publish docker image and The code to be published should be in the `master` branch. -Create a git tag in the format `bpa-` +Create a git tag in the format `` The incremented version number should adhere to the [Semantic Versioning Specification](https://semver.org/#semantic-versioning-specification-semver) based on the changes since the last published release. -A docker image will be created (e.g `bpa-0.4.0-alpha02`) by a [github workflow](.github/workflows/build.yml). +A docker image will be created (e.g `0.4.0-alpha02`) by a [github workflow](.github/workflows/build.yml). ## Step 2: Release helm chart