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

Commit

Permalink
try even more simple version
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Bernhardt <Frank.Bernhardt@bosch.com>
  • Loading branch information
frank-bee committed Jun 2, 2021
1 parent 6f5b285 commit 49b12bb
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:
- '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/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}}
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/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
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/bpa') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
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/bpa') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
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/bpa') }}
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
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 `bpa-<new version>`
Create a git tag in the format `<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 (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

Expand Down

0 comments on commit 49b12bb

Please sign in to comment.