Skip to content

Commit e1a5e79

Browse files
committed
style: apply YAML formatting and consolidate RUN commands per linter requirements
1 parent 01f410e commit e1a5e79

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
---
12
# Name of the workflow as it appears in the GitHub Actions tab
23
name: keepalived_image
34

4-
on:
5+
"on":
56
# Runs automatically every day at 07:31 UTC to keep images fresh
67
schedule:
78
- cron: '31 7 * * *'
89
# Runs whenever code is pushed to the 'main' branch
910
push:
10-
branches: [ "main" ]
11+
branches: ["main"]
1112
# Also runs when a version tag (e.g., v1.0.2) is pushed
12-
tags: [ 'v*.*.*' ]
13+
tags: ['v*.*.*']
1314
# Runs on any Pull Request targeting the 'main' branch (usually for testing the build)
1415
pull_request:
15-
branches: [ "main" ]
16+
branches: ["main"]
1617

1718
env:
1819
# Defines where to push the image (GitHub Container Registry)

.github/workflows/mega-linter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
---
12
name: MegaLinter
23

3-
on:
4+
"on":
45
push:
56
branches:
67
- main

.mega-linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# MegaLinter configuration
23
# https://megalinter.io/
34

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ COPY docker-entrypoint.sh /
6363
RUN chmod +x /healthcheck.sh /docker-entrypoint.sh
6464

6565
# Create directory for user scripts
66-
RUN mkdir -p /usr/local/bin
67-
RUN mkdir -p /usr/local/scripts
66+
RUN mkdir -p /usr/local/bin /usr/local/scripts
6867

6968
# Copy wrapper script
7069
COPY scripts/check_and_run.sh /usr/local/bin/

0 commit comments

Comments
 (0)