Skip to content

Commit

Permalink
update ci to push playtest to playtest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariemeth committed Mar 31, 2024
1 parent 7b7748a commit 284a702
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
IMAGE_NAME: edwardcarmack/gearforce-web
SHA: $("${{ github.sha }}" | cut -c1-7)

jobs:
# Push image to GitHub Packages.
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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
2 changes: 1 addition & 1 deletion lib/screens/roster/roster.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]';
const String _dp9URL = 'https://www.dp9.com/';
const String _sourceCodeURL = 'https://github.com/Ariemeth/gearforce-flutter';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 284a702

Please sign in to comment.