This commit is contained in:
parent
f9ae91806c
commit
5b6029f88f
@ -4,20 +4,20 @@ name: docker build with git tag
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
- "[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
jobs:
|
||||
dockerfile_lint:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# https://github.com/hadolint/hadolint-action/releases
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile/base
|
||||
# dockerfile_lint:
|
||||
# runs-on: ubuntu-22.04
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# # https://github.com/hadolint/hadolint-action/releases
|
||||
# - uses: hadolint/hadolint-action@v3.1.0
|
||||
# with:
|
||||
# dockerfile: Dockerfile/base
|
||||
|
||||
build:
|
||||
needs: dockerfile_lint
|
||||
# needs: dockerfile_lint
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -32,7 +32,7 @@ jobs:
|
||||
|
||||
# build options
|
||||
build_file: Dockerfile
|
||||
tag: '${{ env.TAG }}'
|
||||
tag: "${{ env.TAG }}"
|
||||
build_args: |
|
||||
GIT_TAG=${{ env.TAG }}
|
||||
tag_with_latest: true
|
||||
|
3
.hadolint.yaml
Normal file
3
.hadolint.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
ignored:
|
||||
- DL3008 # no need to pin versions
|
||||
- DL3018 # no need to pin versions
|
Loading…
x
Reference in New Issue
Block a user