Skip to content

Commit

Permalink
try and fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Nov 19, 2023
1 parent 5824c76 commit fa5b3e0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,27 @@ jobs:
echo "Workflow dispatch reason: $INPUTS_REASON"
echo "Use test image: $INPUTS_USE_TEST_IMAGE"
patch_acars_hub_verison:
name: Patch acars-hub version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Patch acars-hub version
run: |
# get the version from version-nextgen. First line only
VERSION=$(head -n 1 version-nextgen)
# get the build number from the github run
BUILD_NUMBER=$GITHUB_RUN_ID
echo "ACARS Hub: $VERSION Build $BUILD_NUMBER"
OUTPUT="ACARS Hub: $VERSION Build $BUILD_NUMBER"
# replace the version in acarshub-typescript/src/menu.ts
sed -i "s/Pre-Release/$OUTPUT/g" acarshub-typescript/src/menu.ts
deploy:
name: Deploy
uses: sdr-enthusiasts/common-github-workflows/.github/workflows/build_and_push_image.yml@main
needs: patch_acars_hub_verison
with:
push_enabled: true
push_destinations: ghcr.io
Expand Down
2 changes: 1 addition & 1 deletion acarshub-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "acarshub-typescript",
"version": "3.2.2",
"version": "3.3.0",
"description": "Web front end for the docker-acarshub project",
"main": "index.js",
"repository": "https://github.com/sdr-enthusiasts/docker-acarshub",
Expand Down
2 changes: 1 addition & 1 deletion version-nextgen
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.2.2
v3.3.0

0 comments on commit fa5b3e0

Please sign in to comment.