diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-10 18:37:40 -0700 |
---|---|---|
committer | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-10 18:37:40 -0700 |
commit | 2ad43db1ed01fe0b5b116ddda1a5177c9f62c130 (patch) | |
tree | 8a6c6b551e7216d40c86e0954d828c783848a37b /.github | |
parent | refactor: project maintenance (diff) | |
download | ferdium-server-2ad43db1ed01fe0b5b116ddda1a5177c9f62c130.tar.gz ferdium-server-2ad43db1ed01fe0b5b116ddda1a5177c9f62c130.tar.zst ferdium-server-2ad43db1ed01fe0b5b116ddda1a5177c9f62c130.zip |
updates
Diffstat (limited to '.github')
-rw-r--r-- | .github/dependabot.yml | 6 | ||||
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/docker.yml | 26 |
3 files changed, 13 insertions, 21 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2c7d170..3eddd09 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml | |||
@@ -1,7 +1,7 @@ | |||
1 | version: 2 | 1 | version: 2 |
2 | updates: | 2 | updates: |
3 | # Maintain dependencies for GitHub Actions | 3 | # Maintain dependencies for GitHub Actions |
4 | - package-ecosystem: "github-actions" | 4 | - package-ecosystem: 'github-actions' |
5 | directory: "/" | 5 | directory: '/' |
6 | schedule: | 6 | schedule: |
7 | interval: "daily" | 7 | interval: 'daily' |
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0abcba7..d143566 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -14,7 +14,7 @@ jobs: | |||
14 | - name: Use Node.js specified in the '.nvmrc' file | 14 | - name: Use Node.js specified in the '.nvmrc' file |
15 | uses: actions/setup-node@v4 | 15 | uses: actions/setup-node@v4 |
16 | with: | 16 | with: |
17 | node-version-file: ".nvmrc" | 17 | node-version-file: '.nvmrc' |
18 | 18 | ||
19 | - name: Install pnpm | 19 | - name: Install pnpm |
20 | run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v | 20 | run: npm i -gf "pnpm@$(node -p 'require("./package.json").engines.pnpm')" && pnpm -v |
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d6a4f7b..f66c3d0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml | |||
@@ -8,18 +8,16 @@ on: | |||
8 | workflow_dispatch: | 8 | workflow_dispatch: |
9 | inputs: | 9 | inputs: |
10 | message: | 10 | message: |
11 | description: "Message for build" | 11 | description: 'Message for build' |
12 | required: true | 12 | required: true |
13 | 13 | ||
14 | jobs: | 14 | jobs: |
15 | docker: | 15 | docker: |
16 | runs-on: ubuntu-latest | 16 | runs-on: ubuntu-latest |
17 | steps: | 17 | steps: |
18 | - | 18 | - name: Checkout |
19 | name: Checkout | ||
20 | uses: actions/checkout@v4 | 19 | uses: actions/checkout@v4 |
21 | - | 20 | - name: Check whether there are any commits since this run was last triggered and push them and/or set the output |
22 | name: Check whether there are any commits since this run was last triggered and push them and/or set the output | ||
23 | id: should_run | 21 | id: should_run |
24 | run: | | 22 | run: | |
25 | git config user.name github-actions | 23 | git config user.name github-actions |
@@ -59,8 +57,7 @@ jobs: | |||
59 | echo "Pushing rebased commits" | 57 | echo "Pushing rebased commits" |
60 | git push origin $(git rev-parse --abbrev-ref HEAD) --no-verify | 58 | git push origin $(git rev-parse --abbrev-ref HEAD) --no-verify |
61 | fi | 59 | fi |
62 | - | 60 | - name: Docker meta |
63 | name: Docker meta | ||
64 | id: meta | 61 | id: meta |
65 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} | 62 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} |
66 | uses: docker/metadata-action@v5 | 63 | uses: docker/metadata-action@v5 |
@@ -73,31 +70,26 @@ jobs: | |||
73 | tags: | | 70 | tags: | |
74 | ${{ env.TAG_NAME }} | 71 | ${{ env.TAG_NAME }} |
75 | latest | 72 | latest |
76 | - | 73 | - name: Set up QEMU |
77 | name: Set up QEMU | ||
78 | uses: docker/setup-qemu-action@v3 | 74 | uses: docker/setup-qemu-action@v3 |
79 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} | 75 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} |
80 | - | 76 | - name: Set up Docker Buildx |
81 | name: Set up Docker Buildx | ||
82 | uses: docker/setup-buildx-action@v3 | 77 | uses: docker/setup-buildx-action@v3 |
83 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} | 78 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} |
84 | - | 79 | - name: Login to GitHub Container Registry |
85 | name: Login to GitHub Container Registry | ||
86 | uses: docker/login-action@v3 | 80 | uses: docker/login-action@v3 |
87 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} | 81 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} |
88 | with: | 82 | with: |
89 | registry: ghcr.io | 83 | registry: ghcr.io |
90 | username: ${{ github.repository_owner }} | 84 | username: ${{ github.repository_owner }} |
91 | password: ${{ secrets.GITHUB_TOKEN }} | 85 | password: ${{ secrets.GITHUB_TOKEN }} |
92 | - | 86 | - name: Login to DockerHub |
93 | name: Login to DockerHub | ||
94 | uses: docker/login-action@v3 | 87 | uses: docker/login-action@v3 |
95 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} | 88 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} |
96 | with: | 89 | with: |
97 | username: ${{ secrets.DOCKERHUB_USERNAME }} | 90 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
98 | password: ${{ secrets.DOCKERHUB_TOKEN }} | 91 | password: ${{ secrets.DOCKERHUB_TOKEN }} |
99 | - | 92 | - name: Build and push |
100 | name: Build and push | ||
101 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} | 93 | if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} |
102 | uses: docker/build-push-action@v5 | 94 | uses: docker/build-push-action@v5 |
103 | with: | 95 | with: |