From cd6d0ad0d8b255a053ff61a799eac5127a5d9207 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Mon, 11 Nov 2024 20:11:38 +0100 Subject: [PATCH 1/5] chore: rename jobs for better readability in Forgejo --- .forgejo/workflows/validate-charts.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.forgejo/workflows/validate-charts.yaml b/.forgejo/workflows/validate-charts.yaml index 25b7ef3..70b9569 100644 --- a/.forgejo/workflows/validate-charts.yaml +++ b/.forgejo/workflows/validate-charts.yaml @@ -1,4 +1,4 @@ -name: Chart Validation +name: Validate Chart on: pull_request: paths: @@ -34,7 +34,7 @@ jobs: changesExist: ${{ env.changesExist }} validate-linting: - name: "Validate: Linting" + name: "Lint" needs: charts-changed if: needs.charts-changed.outputs.changesExist == 'true' runs-on: flakes-action @@ -43,9 +43,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Linting Changed Repositories - run: | + - run: | repos='${{ needs.charts-changed.outputs.reposChanged }}' for repo in $(echo $repos | jq -r '.[]'); do echo "Linting $repo" @@ -53,7 +51,7 @@ jobs: done validate-audit: - name: "Validate: Audit" + name: "Audit" needs: charts-changed if: needs.charts-changed.outputs.changesExist == 'true' runs-on: flakes-action @@ -62,8 +60,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Auditing changed charts - run: | + - run: | repos='${{ needs.charts-changed.outputs.reposChanged }}' for repo in $(echo $repos | jq -r '.[]'); do echo "Auditing $repo" @@ -75,7 +72,7 @@ jobs: done validate-api: - name: "Validate: Outdated APIs" + name: "Outdated APIs" needs: charts-changed if: needs.charts-changed.outputs.changesExist == 'true' runs-on: flakes-action @@ -84,8 +81,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Checking changed charts for outdated APIs - run: | + - run: | repos='${{ needs.charts-changed.outputs.reposChanged }}' for repo in $(echo $repos | jq -r '.[]'); do echo "Checking deprecated apiVersions for $repo" From 21eb7ded81019e42f03e4d8f6a708098fec236c4 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Mon, 11 Nov 2024 20:14:37 +0100 Subject: [PATCH 2/5] chore: add back release workflow This is not active yet, but will be the basis of the upcoming one. --- .forgejo/workflows/release.yaml.deactivated | 15 +++++++++++++++ .gitignore | 1 + 2 files changed, 16 insertions(+) create mode 100644 .forgejo/workflows/release.yaml.deactivated diff --git a/.forgejo/workflows/release.yaml.deactivated b/.forgejo/workflows/release.yaml.deactivated new file mode 100644 index 0000000..47b67ac --- /dev/null +++ b/.forgejo/workflows/release.yaml.deactivated @@ -0,0 +1,15 @@ +name: Release +on: + push: + branches: + - 'main' + +jobs: + release: + name: Release + uses: stenic/github-workflows/.github/workflows/release-docker-helm.yaml@main + with: + docker_image: "ghcr.io/${{ github.repository }}" + chart_path: './charts/well-known' + secrets: + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} diff --git a/.gitignore b/.gitignore index 9a2d84a..02342cc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ testing secrets.env tmp123 tmp123.pub +db.sqlite From 357c7f7a8c973e3a6f7aca3a82776c3320a2e992 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Mon, 11 Nov 2024 19:40:20 +0100 Subject: [PATCH 3/5] chore: update docker image tag --- charts/immich/Chart.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/immich/Chart.yaml b/charts/immich/Chart.yaml index 6990c61..8a77216 100644 --- a/charts/immich/Chart.yaml +++ b/charts/immich/Chart.yaml @@ -5,10 +5,11 @@ description: | appVersion: 1.105.1 type: application icon: https://avatars.githubusercontent.com/u/109746326?s=200&v=4 -version: 0.1.15 +version: 0.1.16 maintainers: - name: Tommy Skaug email: tommy@skaug.me + url: https://code.252.no/tommy keywords: - photo - video From de0e983084e05f4ce556f5e6a3da31515ffc73c4 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Mon, 11 Nov 2024 20:39:35 +0100 Subject: [PATCH 4/5] chore: add back workflow step names for readability --- .forgejo/workflows/validate-charts.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/validate-charts.yaml b/.forgejo/workflows/validate-charts.yaml index 70b9569..b25b53d 100644 --- a/.forgejo/workflows/validate-charts.yaml +++ b/.forgejo/workflows/validate-charts.yaml @@ -43,7 +43,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - run: | + - name: Validate + run: | repos='${{ needs.charts-changed.outputs.reposChanged }}' for repo in $(echo $repos | jq -r '.[]'); do echo "Linting $repo" @@ -60,7 +61,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - run: | + - name: Validate + run: | repos='${{ needs.charts-changed.outputs.reposChanged }}' for repo in $(echo $repos | jq -r '.[]'); do echo "Auditing $repo" @@ -81,7 +83,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - run: | + - name: Validate + run: | repos='${{ needs.charts-changed.outputs.reposChanged }}' for repo in $(echo $repos | jq -r '.[]'); do echo "Checking deprecated apiVersions for $repo" From 6fac850328d8f25ea8df068c07c87b07e690a8d7 Mon Sep 17 00:00:00 2001 From: Tommy Skaug Date: Mon, 11 Nov 2024 20:41:42 +0100 Subject: [PATCH 5/5] chore: only run validation workflow when charts dir changes --- .forgejo/workflows/validate-charts.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.forgejo/workflows/validate-charts.yaml b/.forgejo/workflows/validate-charts.yaml index b25b53d..a444e28 100644 --- a/.forgejo/workflows/validate-charts.yaml +++ b/.forgejo/workflows/validate-charts.yaml @@ -3,13 +3,9 @@ on: pull_request: paths: - 'charts/**' - branches: - - 'main' push: paths: - 'charts/**' - branches: - - 'main' jobs: charts-changed: