Skip to content

Commit

Permalink
Implement Actionlint job in Docker workflow and remove obsolete workf…
Browse files Browse the repository at this point in the history
…low file. The new lint job checks workflow files for errors before the Docker publish job, enhancing CI/CD reliability.
  • Loading branch information
jaydrogers committed Jan 8, 2025
1 parent 6d4dc7d commit 7b420c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/service_docker-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,20 @@ on:
type: string

jobs:
lint:
name: Actionlint
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Analyze workflow files
uses: docker://rhysd/actionlint:1.7.0
with:
args: "-color -verbose -shellcheck="

docker-publish:
runs-on: ubuntu-22.04
needs: lint
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/workflow.yml

This file was deleted.

0 comments on commit 7b420c4

Please sign in to comment.