diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 460ef2b2..2a6a84ed 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -10,6 +10,7 @@ on: env: IMAGE_NAME: edwardcarmack/gearforce-web + SHA: $("${{ github.sha }}" | cut -c1-7) jobs: # Push image to GitHub Packages. @@ -34,9 +35,9 @@ jobs: # Use Docker `latest` tag convention [ "$VERSION" == "main" ] && VERSION=latest - IMAGE_TAGS="$IMAGE_NAME:$VERSION,$IMAGE_NAME:${{ github.sha }}" + IMAGE_TAGS="$IMAGE_NAME:$VERSION,$IMAGE_NAME:${{env.SHA}}" - echo "::set-output name=IMAGE_TAGS::$IMAGE_TAGS" + echo "IMAGE_TAGS=$IMAGE_TAGS" >> "$GITHUB_ENV" # Set up Flutter. - name: Clone Flutter repository with stable channel @@ -83,7 +84,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' steps: - name: "Checkout" @@ -95,6 +96,12 @@ jobs: method: kubeconfig kubeconfig: ${{ secrets.KUBE_CONFIG }} - - name: Deploy to linode cluster + - name: Deploy latest main to the linode cluster + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + helm upgrade -n gearforce --install --set image.tag=${{env.SHA}} --set replicaCount=2 ${{ secrets.HELM_RELEASE_NAME }} chart/gearforce + + - name: Deploy to playtest on the linode cluster + if: github.event_name == 'push' && github.ref == 'refs/heads/playtest/nj' run: | - helm upgrade -n gearforce --install --set image.tag=${{ github.sha }} --set replicaCount=2 ${{ secrets.HELM_RELEASE_NAME }} chart/gearforce + helm upgrade -n playtest --install --set image.tag=${{env.SHA}} --set replicaCount=1 gfpt1 chart/gearforce diff --git a/lib/screens/roster/roster.dart b/lib/screens/roster/roster.dart index f3b93d0e..6ddce05f 100644 --- a/lib/screens/roster/roster.dart +++ b/lib/screens/roster/roster.dart @@ -21,7 +21,7 @@ import 'package:url_launcher/url_launcher_string.dart'; const double _leftPanelWidth = 670.0; const double _titleHeight = 40.0; const double _menuTitleHeight = 50.0; -const String _version = '1.4.4'; +const String _version = '1.4.5'; const String _bugEmailAddress = 'gearforce@metadiversions.com'; const String _dp9URL = 'https://www.dp9.com/'; const String _sourceCodeURL = 'https://github.com/Ariemeth/gearforce-flutter'; diff --git a/pubspec.yaml b/pubspec.yaml index cae02b9e..76748267 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.4.4 +version: 1.4.5 environment: sdk: ">=3.0.0"