Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
the other way again
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Bernhardt <[email protected]>
  • Loading branch information
frank-bee committed Jun 2, 2021
1 parent 727fe00 commit 6f5b285
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
tags:
- 'v**' # Push events to every tag prefixed with v, including hierarchical tags like v1.0/beta
- 'bpa**' # Push events to every tag prefixed with bpa, including hierarchical tags like v1.0/beta

jobs:
build:
Expand Down Expand Up @@ -80,27 +80,27 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }}
with:
registry: ghcr.io
username: ${{ github.repository_owner}}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare docker tags license image
uses: Surgo/docker-smart-tag-action@v1
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }}
id: preparetagslicense
with:
docker_image: ghcr.io/hyperledger-labs/business-partner-agent-license
default_branch: ${{ github.event.repository.default_branch }}
tag_with_sha: true

- name: Build and push license container
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }}
uses: docker/build-push-action@v2
with:
context: .
Expand All @@ -110,15 +110,15 @@ jobs:

- name: Prepare docker images bpa
uses: Surgo/docker-smart-tag-action@v1
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }}
id: preparetags
with:
docker_image: ghcr.io/hyperledger-labs/business-partner-agent
default_branch: ${{ github.event.repository.default_branch }}
tag_with_sha: true

- name: Build and push container
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/bpa') }}
uses: docker/build-push-action@v2
with:
context: .
Expand Down
4 changes: 2 additions & 2 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `v<new version>` (e.g `vbpa-0.4.0-alpha02`)
Create a git tag in the format `bpa-<new version>`
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 with the tag `<new version>` (e.g `bpa-0.4.0-alpha02`) by a [github workflow](.github/workflows/build.yml).
A docker image will be created (e.g `bpa-0.4.0-alpha02`) by a [github workflow](.github/workflows/build.yml).

## Step 2: Release helm chart

Expand Down

0 comments on commit 6f5b285

Please sign in to comment.