Skip to content

Commit 1ab6341

Browse files
updating versions numbers, adding hadolint step to link main Dockerfile
1 parent 989bbc6 commit 1ab6341

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ on:
2323
- 'go.mod'
2424
- 'go.sum'
2525
- '.goreleaser.yaml'
26+
- 'mkdocs.yml'
27+
- 'nfpm.yaml'
2628
- 'pokemon.svg'
2729
branches:
2830
- main
2931

3032
env:
31-
VERSION_NUMBER: 'v1.5.1'
33+
VERSION_NUMBER: 'v1.5.2'
3234
DOCKERHUB_REGISTRY_NAME: 'digitalghostdev/poke-cli'
3335
AWS_REGION: 'us-west-2'
3436

@@ -55,11 +57,27 @@ jobs:
5557
with:
5658
sarif_file: results.sarif
5759

58-
build-docs-docker-image:
60+
lint-cli-dockerfile:
5961
runs-on: ubuntu-22.04
6062
needs: [ gosec ]
6163
if: needs.gosec.result == 'success'
6264

65+
steps:
66+
- name: Checkout
67+
uses: actions/checkout@v4
68+
69+
- name: Lint Dockerfile
70+
uses: 'hadolint/[email protected]'
71+
with:
72+
dockerfile: Dockerfile
73+
failure-threshold: 'error'
74+
75+
76+
build-docs-docker-image:
77+
runs-on: ubuntu-22.04
78+
needs: [ lint-cli-dockerfile ]
79+
if: needs.lint-cli-dockerfile.result == 'success'
80+
6381
steps:
6482
- name: Checkout
6583
uses: actions/checkout@v4

0 commit comments

Comments
 (0)