Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
paths-ignore:
- "docs/**"
- "README.md"
- "docker/**"
- "deploy/**"
- ".github/workflows/web-*.yml"
push:
branches:
- master
Expand All @@ -23,6 +26,8 @@ on:
- "res/**"
- "appimage/**"
- "flatpak/**"
- "docker/**"
- "deploy/**"

jobs:
# ensure_cargo_fmt:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
paths-ignore:
- "docs/**"
- "README.md"
- "docker/**"
- "deploy/**"
- ".github/workflows/web-*.yml"
push:
branches:
- master
Expand All @@ -16,6 +19,8 @@ on:
- "res/**"
- "appimage/**"
- "flatpak/**"
- "docker/**"
- "deploy/**"

jobs:
run-ci:
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/web-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ on:
- 'docker/web-deps/**'
- '.github/workflows/web-deps.yml'
push:
tags: ['*']
branches: [master]
paths:
- 'docker/web-deps/**'
- '.github/workflows/web-deps.yml'
tags: ['web-deps-*']
workflow_dispatch:

env:
IMAGE_NAME: rophy/rustdesk-web-deps
IMAGE_NAME: ghcr.io/rophy/rustdesk/web-deps

jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,22 +31,22 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
- name: Log in to GHCR
if: startsWith(github.ref, 'refs/tags/')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
type=match,pattern=web-deps-(.+),group=1
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}

- name: Build and push
uses: docker/build-push-action@v6
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/web-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@ on:
- 'flutter/lib/**'
- 'flutter/assets/**'
- 'flutter/pubspec.*'
- 'deploy/docker/webclient/Dockerfile'
- 'docker/web-client/**'
- '.github/workflows/web-docker.yml'
- '.github/patches/flutter_3.24.4_dropdown_menu_enableFilter.diff'
push:
tags: ['*']
branches: [master]
paths:
- 'flutter/web/**'
- 'flutter/lib/**'
- 'flutter/assets/**'
- 'flutter/pubspec.*'
- 'docker/web-client/**'
- '.github/workflows/web-docker.yml'
- '.github/patches/flutter_3.24.4_dropdown_menu_enableFilter.diff'
tags: ['web-client-*']
workflow_dispatch:

env:
IMAGE_NAME: rophy/rustdesk-webclient
IMAGE_NAME: ghcr.io/rophy/rustdesk/web-client

jobs:
test:
Expand Down Expand Up @@ -50,6 +59,7 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -60,27 +70,28 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
- name: Log in to GHCR
if: startsWith(github.ref, 'refs/tags/')
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=match,pattern=web-client-(.+),group=1
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: deploy/docker/webclient/Dockerfile
file: docker/web-client/Dockerfile
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
Loading