Skip to content

Commit

Permalink
ci: run build along with release
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Dec 9, 2024
1 parent 3d2188f commit d22af4b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build-api-image.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: 'The app to release'
required: true
type: string
outputs:
version:
description: 'The version released'
value: ${{ jobs.release.outputs.version }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.app }}
Expand All @@ -20,6 +24,9 @@ jobs:
name: Create GitHub Release
runs-on: ubuntu-latest

outputs:
version: ${{ steps.bumps.outputs.version }}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Console API GitHub Release
name: Release API

on:
push:
Expand All @@ -16,4 +16,12 @@ jobs:
uses: ./.github/workflows/create-github-release.yml
secrets: inherit
with:
app: api
app: api

build:
needs: release
name: Build Docker image
uses: ./.github/workflows/build-image.yml
secrets: inherit
with:
tag: ${{ needs.release.outputs.version }}

0 comments on commit d22af4b

Please sign in to comment.