Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Sep 2, 2023
1 parent 70964c4 commit 34fba93
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 37 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,40 @@
name: Build image
name: Release & Build image

on:
release:
types: [published]
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
name: Release
steps:
-
name: Checkout
uses: actions/checkout@v3

-
name: Set Version
id: set-version
run: |
RELEASE_VERSION=$(jq -r '.Release_Version' info.json)
echo "RELEASE_VERSION=${RELEASE_VERSION}"
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_OUTPUT
-
name: Generate Release
uses: actions/create-release@latest
with:
tag_name: ${{ steps.set-version.outputs.RELEASE_VERSION }}
name: ${{ steps.set-version.outputs.RELEASE_VERSION }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bgmi:
needs: [release]
runs-on: ubuntu-latest
steps:
-
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/release.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
name: Checkout
uses: actions/checkout@v3

-
name: Set Version
id: set-version
run: |
BGMI_VERSION=$(jq -r '.BGmi.version' info.json)
echo "BGMI_VERSION=${BGMI_VERSION}"
echo "BGMI_VERSION=${BGMI_VERSION}" >> $GITHUB_OUTPUT
-
name: Docker meta
id: meta
Expand All @@ -38,5 +48,7 @@ jobs:
platforms: |
linux/amd64
push: false
build-args: |
BGMI_VERSION=${{ steps.set-version.outputs.BGMI_VERSION }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 34fba93

Please sign in to comment.