aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-02-10 18:37:40 -0700
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-13 06:59:44 +0530
commite1c47572a6235fd8fd20af888ac3a11c7ae1369d (patch)
tree2dccff36a441916d7014037cef3f7ce84a790cad /.github
parentrefactor: project maintenance (diff)
downloadferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.gz
ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.zst
ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.zip
updates
Diffstat (limited to '.github')
-rw-r--r--.github/dependabot.yml6
-rw-r--r--.github/workflows/docker.yml26
2 files changed, 12 insertions, 20 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 26048be..9f4801c 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -5,7 +5,7 @@ updates:
5 schedule: 5 schedule:
6 interval: "daily" 6 interval: "daily"
7 # Maintain dependencies for GitHub Actions 7 # Maintain dependencies for GitHub Actions
8 - package-ecosystem: "github-actions" 8 - package-ecosystem: 'github-actions'
9 directory: "/" 9 directory: '/'
10 schedule: 10 schedule:
11 interval: "daily" 11 interval: 'daily'
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 0d457af..c5fd90f 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
14jobs: 14jobs:
15 docker: 15 docker:
16 runs-on: ubuntu-22.04 16 runs-on: ubuntu-22.04
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: