Skip to content

Commit

Permalink
chore: Create release page when creating release artifact (#15902)
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc authored Sep 28, 2023
1 parent ca0a127 commit bfbad99
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/create_docker_image.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: Create Docker image
name: Create Release Artifact

on:
workflow_dispatch:
inputs:
tag:
description: 'tagname for the Docker image'
description: 'tagname for the Artifact'
required: true
type: string

create_release:
description: 'Wether or not a release entry should be created on github'
required: false
default: true
type: boolean

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test_build_deploy:
create_image:
runs-on: ubuntu-latest

steps:
Expand All @@ -32,7 +38,9 @@ jobs:
run: yarn --immutable

- name: Test
run: yarn test --coverage --coverage-reporters=lcov --detectOpenHandles=false
run: |
set -o pipefail
yarn test --coverage --coverage-reporters=lcov --detectOpenHandles=false 2>&1 | tee ./unit-tests.log
- name: Build
run: yarn build:prod
Expand All @@ -42,3 +50,16 @@ jobs:
DOCKER_PASSWORD: ${{secrets.WEBTEAM_QUAY_PASSWORD}}
DOCKER_USERNAME: ${{secrets.WEBTEAM_QUAY_USERNAME}}
run: yarn docker '' "${{inputs.tag}}"

- name: Create GitHub release
if: ${{inputs.create_release}}
id: create_release_production
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{github.token}}
with:
tag_name: ${{inputs.tag}}
name: ${{inputs.tag}}
files: ./unit-tests.log
draft: false
prerelease: true

0 comments on commit bfbad99

Please sign in to comment.