Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(repo): Enhance Server & App Deployment #143

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
29c1ec6
added frontend Dockerfile
DenuxPlays Apr 16, 2024
a3d95af
added publish workflow (frontend docker)
DenuxPlays Apr 16, 2024
5701324
fixed workflows
DenuxPlays Apr 16, 2024
40aa24f
fixed Dockerfile
DenuxPlays Apr 16, 2024
167eaad
deleted old-deploy workflow
DenuxPlays Apr 16, 2024
c615b53
use metrics instead of multiple jobs/files
DenuxPlays Apr 16, 2024
1e90bb6
moved every rust-check into one workflow
DenuxPlays Apr 16, 2024
ed15398
removed unused workflow
DenuxPlays Apr 16, 2024
3c95cfc
updated mdbook version
DenuxPlays Apr 16, 2024
3ab4648
updated CHANGELOG.md & extended release-workflow
DenuxPlays Apr 16, 2024
187f456
updated release workflow
DenuxPlays Apr 17, 2024
a2f21cd
Merge branch 'main' into repo/chore/advanced-deployment
DenuxPlays Apr 17, 2024
19c7c91
stage workflow
DenuxPlays Apr 17, 2024
733fc9a
renamed secret key
DenuxPlays Apr 17, 2024
7c7856b
build flutter with `--release` flag
DenuxPlays Apr 17, 2024
5ee23e3
Merge branch 'main' into repo/chore/advanced-deployment
DenuxPlays Apr 18, 2024
0cec4b8
enhanced release workflow
DenuxPlays Apr 18, 2024
4002187
Merge remote-tracking branch 'origin/repo/chore/advanced-deployment' …
DenuxPlays Apr 18, 2024
df26655
renamed ios file from .app to .ipa
DenuxPlays Apr 19, 2024
9bd32a7
Merge branch 'main' into repo/chore/advanced-deployment
DenuxPlays Apr 22, 2024
1f4bc84
first ios deploy
DenuxPlays Apr 22, 2024
26c36fe
Merge branch 'main' into repo/chore/advanced-deployment
DenuxPlays May 2, 2024
aee3cdd
removed deployment and fixed some workflows
DenuxPlays May 2, 2024
4fcc3fa
Merge branch 'refs/heads/main' into repo/chore/advanced-deployment
DenuxPlays May 25, 2024
12fd200
Merge branch 'refs/heads/main' into repo/chore/advanced-deployment
DenuxPlays May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/backend-build-test.yaml

This file was deleted.

98 changes: 0 additions & 98 deletions .github/workflows/backend-publish-docker-images.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/backend-rust-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
paths:
- 'backend/**'

env:
CARGO_TERM_COLOR: always

# Set default working directory
defaults:
run:
Expand Down Expand Up @@ -50,3 +53,12 @@ jobs:
flags: --all
args: --config-path=./backend/rustfmt.toml
working-directory: ./backend

build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose --workspace
32 changes: 32 additions & 0 deletions .github/workflows/deploy-stages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy stages

on:
# Runs on pushes targeting the default branch
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: "deploy-stages"
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: staging
steps:
- name: Execute commands over SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd ${{ secrets.WORKING_DIRECTORY }}
git pull
bash backend/bin/deploy.bash &
bash frontend/scripts/deploy.bash &
wait
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest

env:
MDBOOK_VERSION: 0.4.36
MDBOOK_VERSION: 0.4.37

permissions:
contents: write
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/frontend-docker-compose-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: (Frontend) Docker Compose Build

on:
push:
branches: [ "main" ]
paths:
- 'frontend/**'
pull_request:
branches: [ "main" ]
paths:
- 'frontend/**'

# Set default working directory
defaults:
run:
working-directory: ./frontend # Change the working directory to /frontend

jobs:
build-amd64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/docker/Dockerfile
platforms: linux/amd64
load: true

build-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/docker/Dockerfile
platforms: linux/arm64
load: true
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defaults:
working-directory: ./frontend # Change the working directory to /frontend

jobs:
build:
analysis:
name: Flutter Code Analysis
runs-on: ubuntu-latest
steps:
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/frontend-flutter-deploy-stage.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/frontend-flutter-pr-preview.yml

This file was deleted.

Loading
Loading