Browse Source

chore(deps): pin dependencies

pull/612/head
renovate[bot] 1 year ago committed by GitHub
parent
commit
baaed0ffda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/conventional_commits.yaml
  2. 6
      .github/workflows/dart.yml
  3. 36
      .github/workflows/publish.yaml
  4. 2
      tool/Dockerfile.dev
  5. 2
      tool/build/Dockerfile.linux

4
.github/workflows/conventional_commits.yaml

@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install dart - name: Install dart
uses: dart-lang/setup-dart@v1 uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1
- name: Install commitlint_cli - name: Install commitlint_cli
run: dart pub get run: dart pub get

6
.github/workflows/dart.yml

@ -21,15 +21,15 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Cache dependencies - name: Cache dependencies
uses: actions/cache@v3 uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with: with:
path: ~/.pub-cache/hosted path: ~/.pub-cache/hosted
key: dart-ci key: dart-ci
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install dart - name: Install dart
uses: dart-lang/setup-dart@v1 uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f # v1
- name: Setup - name: Setup
run: ./tool/setup.sh run: ./tool/setup.sh
- name: Build test Docker image - name: Build test Docker image

36
.github/workflows/publish.yaml

@ -21,7 +21,7 @@ jobs:
build_number: ${{ steps.build_number.outputs.BUILD_NUMBER }} build_number: ${{ steps.build_number.outputs.BUILD_NUMBER }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set flutter version - name: Set flutter version
id: flutter_version id: flutter_version
@ -36,21 +36,21 @@ jobs:
needs: setup needs: setup
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2
with: with:
flutter-version: ${{ needs.setup.outputs.flutter_version }} flutter-version: ${{ needs.setup.outputs.flutter_version }}
channel: 'stable' channel: 'stable'
cache: true cache: true
- name: Pub dependency cache - name: Pub dependency cache
uses: actions/cache@v3 uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with: with:
path: ${{ env.PUB_CACHE }} path: ${{ env.PUB_CACHE }}
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pub- ${{ runner.os }}-pub-
- name: Gradle dependency cache - name: Gradle dependency cache
uses: actions/cache@v3 uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
@ -59,14 +59,14 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- name: Set up JDK 11 - name: Set up JDK 11
uses: actions/setup-java@v3 uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3
with: with:
distribution: 'adopt' distribution: 'adopt'
java-version: 11 java-version: 11
- name: Build - name: Build
run: cd packages/app && flutter build apk --split-per-abi --build-number="${{ needs.setup.outputs.build_number }}" run: cd packages/app && flutter build apk --split-per-abi --build-number="${{ needs.setup.outputs.build_number }}"
- uses: ilharp/sign-android-release@v1 - uses: ilharp/sign-android-release@2034987c31e3959f7c97e88d5e656e52e6e88bd8 # v1
name: Sign name: Sign
with: with:
releaseDir: packages/app/build/app/outputs/flutter-apk releaseDir: packages/app/build/app/outputs/flutter-apk
@ -75,17 +75,17 @@ jobs:
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD }}
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
with: with:
name: Android arm64-v8a name: Android arm64-v8a
path: packages/app/build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk path: packages/app/build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk
if-no-files-found: error if-no-files-found: error
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
with: with:
name: Android armeabi-v7a name: Android armeabi-v7a
path: packages/app/build/app/outputs/flutter-apk/app-armeabi-v7a-release-signed.apk path: packages/app/build/app/outputs/flutter-apk/app-armeabi-v7a-release-signed.apk
if-no-files-found: error if-no-files-found: error
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
with: with:
name: Android x86_64 name: Android x86_64
path: packages/app/build/app/outputs/flutter-apk/app-x86_64-release-signed.apk path: packages/app/build/app/outputs/flutter-apk/app-x86_64-release-signed.apk
@ -111,14 +111,14 @@ jobs:
needs: setup needs: setup
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2
with: with:
flutter-version: ${{ needs.setup.outputs.flutter_version }} flutter-version: ${{ needs.setup.outputs.flutter_version }}
channel: 'stable' channel: 'stable'
cache: true cache: true
- name: Pub dependency cache - name: Pub dependency cache
uses: actions/cache@v3 uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with: with:
path: ${{ env.PUB_CACHE }} path: ${{ env.PUB_CACHE }}
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
@ -134,7 +134,7 @@ jobs:
- name: Build - name: Build
run: cd packages/app && flutter build linux --build-number="${{ needs.setup.outputs.build_number }}" run: cd packages/app && flutter build linux --build-number="${{ needs.setup.outputs.build_number }}"
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
with: with:
name: Linux x86_64 name: Linux x86_64
path: packages/app/build/linux/x64/release/bundle/* path: packages/app/build/linux/x64/release/bundle/*
@ -146,7 +146,7 @@ jobs:
needs: setup needs: setup
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set docker image - name: Set docker image
id: docker_image id: docker_image
run: | run: |
@ -154,11 +154,11 @@ jobs:
echo "remote=ghcr.io/$GITHUB_REPOSITORY/build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT echo "remote=ghcr.io/$GITHUB_REPOSITORY/build-linux-arm64:${{ needs.setup.outputs.flutter_version }}" >> $GITHUB_OUTPUT
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2
with: with:
platforms: arm64 platforms: arm64
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2
with: with:
platforms: linux/arm64 platforms: linux/arm64
@ -167,7 +167,7 @@ jobs:
FLUTTER_VERSION: ${{ needs.setup.outputs.flutter_version }} FLUTTER_VERSION: ${{ needs.setup.outputs.flutter_version }}
run: ./tool/build-app.sh linux/arm64 --build-number="${{ needs.setup.outputs.build_number }}" run: ./tool/build-app.sh linux/arm64 --build-number="${{ needs.setup.outputs.build_number }}"
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3
with: with:
name: Linux arm64 name: Linux arm64
path: packages/app/build/linux/arm64/release/bundle/* path: packages/app/build/linux/arm64/release/bundle/*

2
tool/Dockerfile.dev

@ -1,4 +1,4 @@
FROM nextcloud:27.0.0 FROM nextcloud:27.0.0@sha256:a4181a159a0eb4d33cf7c5a05a24ca39c1ff6b7df29a125b5e47ab2ea2863bd1
WORKDIR /usr/src/nextcloud WORKDIR /usr/src/nextcloud
RUN chown -R www-data:www-data . RUN chown -R www-data:www-data .
USER www-data USER www-data

2
tool/build/Dockerfile.linux

@ -1,4 +1,4 @@
FROM debian:stable-slim FROM debian:stable-slim@sha256:6fe30b9cb71d604a872557be086c74f95451fecd939d72afe3cffca3d9e60607
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \

Loading…
Cancel
Save