Align workflows with htpasswd standard pattern
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Failing after 14s

- Add hadolint, test, and build jobs in dependency chain matching htpasswd
- Update build context: ./pkg, file: pkg/Dockerfile
- Update image to jcabillot/send with SA_TOKEN_ACTION_PUSH_TAGS
- Add continue-on-error on hadolint jobs, setup-buildx in test steps
- Add version comments on action SHAs
- Use fetch-depth: 0 for tag-related checkouts
- Configure git auth URL with SA_TOKEN_ACTION_PUSH_TAGS for tag creation

Closes: fix/workflow-standard
This commit is contained in:
Sagent
2026-06-13 21:36:33 +00:00
parent 6ec8199178
commit 7f3cc66380
4 changed files with 123 additions and 60 deletions
+8 -10
View File
@@ -5,20 +5,18 @@ on:
branches: [master]
jobs:
lint:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Hadolint
uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: pkg/Dockerfile
test:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Build image
run: docker build -f pkg/Dockerfile -t ci-image:${{ github.sha }} .
- name: Run tests
run: bash tests/test.sh ci-image:${{ github.sha }}
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -f pkg/Dockerfile -t ci-image:${{ github.sha }} ./pkg
- run: bash tests/test.sh ci-image:${{ github.sha }}