Skip to content

Commit 4c91c9d

Browse files
authored
Merge pull request #873 from steilerDev/beta
stage for production release
2 parents bb048a7 + 3f4fc9f commit 4c91c9d

File tree

102 files changed

+8314
-4843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+8314
-4843
lines changed

.devcontainer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/typescript-node-12
33
{
44
"name": "icloud-photos-sync",
5-
"image": "mcr.microsoft.com/devcontainers/base:bookworm",
5+
"image": "debian:trixie",
66
"features": {
77
"ghcr.io/devcontainers/features/common-utils:2": {
88
"username": "vscode",
@@ -18,13 +18,14 @@
1818
"version": "latest"
1919
},
2020
"ghcr.io/devcontainers/features/node:1": {
21-
"version": "22.13.1"
21+
"version": "22.19.0"
2222
},
2323
"ghcr.io/devcontainers/features/python:1": {
2424
"version": "3.9"
2525
},
2626
"ghcr.io/devcontainers/features/docker-in-docker:2": {
27-
"version": "latest"
27+
"version": "latest",
28+
"moby": "false"
2829
}
2930
},
3031

@@ -72,8 +73,8 @@
7273
// gpg --edit-key <key-id>
7374
// > gpg trust
7475
// > gpg 5
75-
// git config --global user.signingkey <key-id>
76-
// git config --global commit.gpgsign true
76+
// git config user.signingkey <key-id>
77+
// git config commit.gpgsign true
7778
"source": "gpg-trust",
7879
"target": "/home/vscode/.gnupg/",
7980
"type": "volume"

.github/acquire-trust-token.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo "container $DOCKER_NAME is running!"
4242

4343
echo -n "Waiting for MFA server to become available.."
4444

45-
until docker logs $DOCKER_NAME | grep -q "Listening for input on port"; do
45+
until docker logs $DOCKER_NAME | grep -q "MFA code required"; do
4646
echo -n '.'
4747
sleep 1
4848
if docker logs $DOCKER_NAME | grep -q "Error"; then
@@ -57,13 +57,13 @@ echo "server available"
5757

5858
echo "Requesting code..."
5959
# Resend MFA code via SMS
60-
docker exec $DOCKER_NAME resend_mfa $MFA_METHOD $MFA_ID > /dev/null
60+
docker exec $DOCKER_NAME curl -s -X POST "http://localhost:80/api/resend_mfa?method=${MFA_METHOD}&phoneNumberId=${MFA_ID}" | jq -crM .message
6161

6262
echo "Please enter MFA code:"
6363
read MFA_CODE
6464

6565
# Send MFA code
66-
docker exec $DOCKER_NAME enter_mfa $MFA_CODE > /dev/null
66+
docker exec $DOCKER_NAME curl -s -X POST "http://localhost:80/api/mfa?code=${MFA_CODE}" | jq -crM .message
6767

6868
echo "Waiting for container to exit..."
6969
docker wait $DOCKER_NAME

.github/actions/build/app-setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
using: composite
1010
steps:
1111
- id: setup-node
12-
uses: actions/setup-node@v4
12+
uses: actions/setup-node@v5
1313
with:
1414
node-version-file: ${{ inputs.app-path }}/node-version
1515
cache: npm

.github/actions/build/docker-setup/action.yml

Lines changed: 16 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,33 @@ inputs:
55
description: The path to the docker directory
66
required: false
77
default: docker
8-
app-artifact-pattern:
9-
description: The glob pattern of the name of the uploaded app artifact (could be 'app-artifact-build' or 'app-artifact-release')
10-
required: false
11-
default: app-artifact*
128
runs:
139
using: composite
1410
steps:
1511
- id: setup-qemu
1612
uses: docker/setup-qemu-action@v3
1713
- id: setup-buildx
1814
uses: docker/setup-buildx-action@v3
19-
- id: setup-app-artifact
20-
uses: actions/download-artifact@v4
15+
- id: setup-fs
16+
shell: bash
17+
run: mkdir -p "${{ inputs.docker-path }}/rootfs/opt/"
18+
- id: setup-release-app-artifact
19+
uses: actions/download-artifact@v5
20+
continue-on-error: true
21+
with:
22+
name: app-artifact-release
23+
path: ${{ inputs.docker-path }}/rootfs/opt/
24+
- id: setup-build-app-artifact
25+
if: steps.setup-release-app-artifact.outcome == 'failure'
26+
uses: actions/download-artifact@v5
2127
with:
22-
pattern: ${{ inputs.app-artifact-pattern }}
23-
path: ${{ inputs.docker-path }}
24-
- id: select-app-artifact
28+
name: app-artifact-build
29+
path: ${{ inputs.docker-path }}/rootfs/opt/
30+
- id: validate-app-artifact
2531
shell: bash
2632
run: |
2733
tree -a "${{ inputs.docker-path }}/"
28-
if [ -d "${{ inputs.docker-path }}/app-artifact-release" ]; then
29-
ARTIFACT_DIR="${{ inputs.docker-path }}/app-artifact-release"
30-
elif [ -d "${{ inputs.docker-path }}/app-artifact-build" ]; then
31-
ARTIFACT_DIR="${{ inputs.docker-path }}/app-artifact-build"
32-
else
33-
echo "Unable to find artifact!"
34-
exit 1
35-
fi
36-
37-
38-
ARTIFACT="$ARTIFACT_DIR/npm-pack.tgz"
39-
echo "Found artifact $ARTIFACT"
40-
41-
if [ ! -f "$ARTIFACT" ]; then
42-
echo "Artifact is not file!"
43-
exit 1
44-
fi
45-
46-
ARTIFACT_TARGET_PATH="${{ inputs.docker-path }}/rootfs/opt/"
47-
mkdir -p "$ARTIFACT_TARGET_PATH"
48-
49-
echo "Moving $ARTIFACT to $ARTIFACT_TARGET_PATH"
50-
mv "$ARTIFACT" "$ARTIFACT_TARGET_PATH"
34+
tar -xOf ${{ inputs.docker-path }}/rootfs/opt/npm-pack.tgz package/package.json
5135
- id: build-rootfs
5236
shell: bash
5337
run: tar -C ${{ inputs.docker-path }}/rootfs -czf ${{ inputs.docker-path }}/rootfs.tar.gz ./

.github/actions/build/docker/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,19 @@ runs:
2424
uses: docker/build-push-action@v6
2525
with:
2626
context: ${{ inputs.docker-path }}
27-
cache-from: type=gha
28-
cache-to: type=gha,mode=max
2927
platforms: linux/amd64
3028
tags: ${{ steps.get-docker-metadata.outputs.image-namespace }}/${{ steps.get-docker-metadata.outputs.image-repository }}:${{ steps.get-docker-metadata.outputs.image-tag }}
3129
outputs: type=docker,dest=docker-amd64.tar
3230
- id: build-docker-arm64
3331
uses: docker/build-push-action@v6
3432
with:
3533
context: ${{ inputs.docker-path }}
36-
cache-from: type=gha
37-
cache-to: type=gha,mode=max
3834
platforms: linux/arm64
3935
tags: ${{ steps.get-docker-metadata.outputs.image-namespace }}/${{ steps.get-docker-metadata.outputs.image-repository }}:${{ steps.get-docker-metadata.outputs.image-tag }}
4036
outputs: type=docker,dest=docker-arm64.tar
4137
- id: docker-scout
4238
uses: docker/scout-action@v1
39+
if: github.actor == 'steilerdev'
4340
with:
4441
dockerhub-user: ${{ steps.get-docker-metadata.outputs.image-namespace }}
4542
dockerhub-password: ${{ inputs.docker-token }}

.github/actions/build/docs-setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
using: composite
1818
steps:
1919
- id: setup-python
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@v6
2121
with:
2222
python-version: 3.9
2323
cache: pip
@@ -26,7 +26,7 @@ runs:
2626
shell: bash
2727
run: pip install -r ${{ inputs.docs-path }}/requirements.txt
2828
- id: setup-node
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v5
3030
with:
3131
node-version-file: ${{ inputs.app-path }}/node-version
3232
cache: npm

.github/actions/build/docs/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
shell: bash
2828
run: (cd ${{ inputs.docs-path }}; mkdocs build)
2929
- id: bundle-coverage
30-
uses: dawidd6/action-download-artifact@v9
30+
uses: dawidd6/action-download-artifact@v11
3131
with:
3232
name: coverage-artifact-Linux
3333
path: ${{ inputs.docs-path }}/${{ steps.get-docs-config.outputs.site-dir }}/dev/coverage
@@ -36,6 +36,6 @@ runs:
3636
branch: beta
3737
if_no_artifact_found: warn
3838
- id: upload-artifact
39-
uses: actions/upload-pages-artifact@v3
39+
uses: actions/upload-pages-artifact@v4
4040
with:
4141
path: ${{ inputs.docs-path }}/${{ steps.get-docs-config.outputs.site-dir }}

.github/actions/helper/prepare-semantic-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ runs:
7878
echo "Wrote:"
7979
cat ${{ inputs.release-dir }}/.releaserc.json
8080
- id: setup-node
81-
uses: actions/setup-node@v4
81+
uses: actions/setup-node@v5
8282
with:
8383
node-version-file: ${{ inputs.node-version-file }}
8484
cache: npm

0 commit comments

Comments
 (0)