31 Commits
main ... main

Author SHA1 Message Date
6449fb2d67 Merge pull request 'Update actions/checkout digest to 8e8c483' (#22) from renovate/actions-checkout-digest into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#22
2025-12-03 11:16:38 +01:00
d93138349b Update actions/checkout digest to 8e8c483 2025-12-03 03:23:29 +00:00
a06625b818 Merge pull request 'Update actions/checkout action to v6' (#21) from renovate/actions-checkout-6.x into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#21
2025-11-22 00:02:02 +01:00
b2cb20b4a0 Update actions/checkout action to v6 2025-11-21 03:28:02 +00:00
28e437469a Merge pull request 'Update actions/checkout digest to 93cb6ef' (#20) from renovate/actions-checkout-digest into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#20
2025-11-18 13:20:56 +01:00
df97385a82 Update actions/checkout digest to 93cb6ef 2025-11-18 03:26:59 +00:00
kovagoadi
e277c79fb3 Add step name 2025-11-01 15:56:04 +01:00
kovagoadi
5df36a724e Cleanup 2025-11-01 15:53:02 +01:00
553b5ee2b6 Merge pull request 'Pin dependencies' (#19) from renovate/pin-dependencies into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#19
2025-10-31 11:31:26 +01:00
9ce291351f Pin dependencies 2025-10-31 03:27:53 +00:00
77c7738a08 Merge pull request 'Pinned every digest' (#18) from pin-digest into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#18
2025-10-30 22:45:33 +01:00
9aea346b02 Pinned every digest 2025-10-30 17:59:06 +01:00
64fec3f4dc Merge pull request 'Migrate renovate config' (#17) from renovate/migrate-config into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#17
2025-10-30 17:51:03 +01:00
2f23b1bd75 Migrate config renovate.json 2025-10-30 03:27:30 +00:00
ed3cd9867b Merge pull request 'Update actions/checkout action to v5' (#16) from renovate/actions-checkout-5.x into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#16
2025-10-28 22:17:45 +01:00
db60419881 Merge pull request 'Update webfactory/ssh-agent action to v0.9.1' (#15) from renovate/webfactory-ssh-agent-0.x into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#15
2025-10-28 22:16:51 +01:00
3f48bd817c Update actions/checkout action to v5 2025-10-28 21:12:11 +00:00
58ad0d389a Update webfactory/ssh-agent action to v0.9.1 2025-10-28 21:12:04 +00:00
6a0f600276 Pin nginx Docker tag to a529900 (#13)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| nginx | pinDigest |  -> `a529900` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMC4yIiwidXBkYXRlZEluVmVyIjoiMzcuMjAuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: kovagoadi <kovaogadi@gmail.com>
Co-authored-by: kovagoadi <kovagoadi@kovagoadi.hu>
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#13
Co-authored-by: Renovate Bot <renovate@kovagoadi.hu>
Co-committed-by: Renovate Bot <renovate@kovagoadi.hu>
2025-10-28 13:44:36 +01:00
716f9aa535 Fix path (#14)
Co-authored-by: kovagoadi <kovaogadi@gmail.com>
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#14
2025-10-28 13:40:23 +01:00
6cb8818377 Fix schema 2025-10-27 19:03:19 +01:00
kovagoadi
dcef391438 Added package rules block 2025-10-26 21:08:19 +01:00
kovagoadi
4d5da7bd2c Fix path 2025-10-26 20:50:01 +01:00
c2bd6da20e Merge pull request 'Improved pipeline' (#11) from improve-pipeline into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#11
2025-10-26 20:41:14 +01:00
kovagoadi
a309f7664a Improved pipeline 2025-10-26 20:38:38 +01:00
kovagoadi
6176d24e9d Cleanup step added 2025-10-26 20:15:37 +01:00
ac0ccebfb4 Merge pull request 'Update nginx Docker tag to v1.27.0' (#4) from renovate/nginx-1.x into main
Reviewed-on: kovagoadi.hu/static.kovagoadi.hu#4
2025-10-24 00:11:24 +02:00
1be2402216 Merge branch 'main' into renovate/nginx-1.x 2025-10-24 00:10:48 +02:00
d6f763748f Reverted change 2025-10-23 23:16:13 +02:00
304f32383f Trying this out 2025-10-23 23:11:45 +02:00
8c138a7485 Update nginx Docker tag to v1.27.0 2025-10-22 18:35:56 +00:00
5 changed files with 39 additions and 41 deletions

View File

@@ -1,15 +0,0 @@
name: Hello world
on:
- push
jobs:
say-hello:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Print hello
run: echo "Hello, world! from Gitea Actions"

View File

@@ -8,11 +8,17 @@ on:
types: [opened, synchronize, reopened, closed] types: [opened, synchronize, reopened, closed]
env: env:
REMOTE_DEPLOY_PATH: /tmp/app # Change to your remote deploy base path # Base path for PR preview environments
REMOTE_DEPLOY_PATH: /var/app/test/test
# --- CUSTOMIZABLE PRODUCTION PATH ---
# Set the absolute path for your production deployment on the remote server.
REMOTE_PROD_PATH: /var/app/test/test-prod
SSH_HOST: ${{ secrets.SSH_HOST }} SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_USER: ${{ secrets.SSH_USER }} SSH_USER: ${{ secrets.SSH_USER }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_PORT: ${{ secrets.SSH_PORT || 22 }} # Default to port 22 if not set SSH_PORT: ${{ secrets.SSH_PORT || 22 }}
jobs: jobs:
prepare_deployment_vars: prepare_deployment_vars:
@@ -24,14 +30,18 @@ jobs:
- name: Set deployment variables - name: Set deployment variables
id: set-vars id: set-vars
run: | run: |
REPO_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)
if [[ "${{ github.event_name }}" == "pull_request" ]]; then if [[ "${{ github.event_name }}" == "pull_request" ]]; then
DEPLOY_DIR_NAME="pr-${{ github.event.pull_request.number }}" # For PRs, create a unique directory under the base path
DEPLOY_PATH="${REMOTE_DEPLOY_PATH}/${REPO_NAME}-pr-${{ github.event.pull_request.number }}"
else else
DEPLOY_DIR_NAME="main" # For 'main' branch, use the specified production path.
# Fallback to a default if REMOTE_PROD_PATH is empty.
DEPLOY_PATH="${REMOTE_PROD_PATH:-${REMOTE_DEPLOY_PATH}/main}"
fi fi
echo "DEPLOY_PATH=${REMOTE_DEPLOY_PATH}/${DEPLOY_DIR_NAME}" >> $GITHUB_ENV echo "DEPLOY_PATH=${DEPLOY_PATH}" >> $GITHUB_ENV
echo "deploy_path=${REMOTE_DEPLOY_PATH}/${DEPLOY_DIR_NAME}" >> $GITHUB_OUTPUT echo "deploy_path=${DEPLOY_PATH}" >> $GITHUB_OUTPUT
echo "DEPLOY_PATH will be: ${REMOTE_DEPLOY_PATH}/${DEPLOY_DIR_NAME}" echo "DEPLOY_PATH will be: ${DEPLOY_PATH}"
create_remote_directory: create_remote_directory:
name: Create remote directory name: Create remote directory
@@ -42,7 +52,7 @@ jobs:
|| github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main'
steps: steps:
- name: Setup SSH - name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0 uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with: with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }} ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
@@ -50,7 +60,6 @@ jobs:
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
chmod 700 ~/.ssh chmod 700 ~/.ssh
echo "Scanning SSH host key for $SSH_HOST:$SSH_PORT..."
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || { ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT" echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1 exit 1
@@ -58,7 +67,7 @@ jobs:
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
- name: Create directory on remote - name: Create directory on remote
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "mkdir -p ${{ needs.prepare_deployment_vars.outputs.deploy_path }}" run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "mkdir -p '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'"
sync_repo_files: sync_repo_files:
name: Sync repository files name: Sync repository files
@@ -68,7 +77,8 @@ jobs:
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false) (github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.merged == false)
|| github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main'
steps: steps:
- uses: actions/checkout@v4 - name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Sync files via scp - name: Sync files via scp
uses: appleboy/scp-action@master uses: appleboy/scp-action@master
@@ -79,12 +89,6 @@ jobs:
port: ${{ env.SSH_PORT }} port: ${{ env.SSH_PORT }}
source: "./" source: "./"
target: "${{ needs.prepare_deployment_vars.outputs.deploy_path }}" target: "${{ needs.prepare_deployment_vars.outputs.deploy_path }}"
#target: "/tmp/app/main"
# The 'exclude' parameter is supported and should be kept
# exclude: |
# .git/
# .github/
# node_modules/
run_docker_compose: run_docker_compose:
name: Run docker-compose remotely name: Run docker-compose remotely
@@ -95,7 +99,7 @@ jobs:
|| github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main'
steps: steps:
- name: Setup SSH - name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0 uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with: with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }} ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
@@ -103,7 +107,6 @@ jobs:
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
chmod 700 ~/.ssh chmod 700 ~/.ssh
echo "Scanning SSH host key for $SSH_HOST:$SSH_PORT..."
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || { ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT" echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1 exit 1
@@ -111,18 +114,18 @@ jobs:
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
- name: Run docker-compose on remote host - name: Run docker-compose on remote host
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd ${{ needs.prepare_deployment_vars.outputs.deploy_path }} && docker-compose up -d --build" run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' && docker-compose up -d --build"
cleanup_mr_environment: cleanup_mr_environment:
name: Cleanup MR environment name: Cleanup MR environment
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [prepare_deployment_vars, prepare_deployment_vars] needs: prepare_deployment_vars
if: | if: |
github.event_name == 'pull_request' && github.event_name == 'pull_request' &&
(github.event.action == 'closed' || github.event.pull_request.merged == true) (github.event.action == 'closed' || github.event.pull_request.merged == true)
steps: steps:
- name: Setup SSH - name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0 uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
with: with:
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }} ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
@@ -130,13 +133,15 @@ jobs:
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
chmod 700 ~/.ssh chmod 700 ~/.ssh
echo "Scanning SSH host key for $SSH_HOST:$SSH_PORT..."
ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || { ssh-keyscan -p "$SSH_PORT" -T 10 -H "$SSH_HOST" >> ~/.ssh/known_hosts 2>/dev/null || {
echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT" echo "::error::Failed to ssh-keyscan $SSH_HOST:$SSH_PORT"
exit 1 exit 1
} }
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
- name: Run docker-compose down on remote host
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' && docker-compose down"
- name: Delete deployment directory - name: Delete deployment directory
run: | run: |
ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "if [ -d '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' ]; then rm -rf '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'; echo 'Directory removed.'; else echo 'Directory not found, skipping.'; fi" ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "if [ -d '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' ]; then rm -rf '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'; echo 'Directory removed.'; else echo 'Directory not found, skipping.'; fi"

View File

@@ -1 +0,0 @@
Random file, ami remélhetőleg megjelenik

View File

@@ -1,7 +1,7 @@
version: "3.9" version: "3.9"
services: services:
web: web:
image: nginx:1.26.1-alpine3.19-slim image: nginx:1.27.0-alpine3.19-slim@sha256:a529900d9252ce5d04531a4a594f93736dbbe3ec155a692d10484be82aaa159a
ports: ports:
- "80" - "80"
volumes: volumes:

View File

@@ -2,5 +2,14 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": [
"config:recommended" "config:recommended"
] ],
// "packageRules": [
// {
// "matchCategories": [
// "docker"
// ],
// "pinDigests": true
// }
// ],
"pinDigests": true
} }