mirror of
https://github.com/BretFisher/shpod.git
synced 2026-05-20 08:22:58 +00:00
fixing lint errors
This commit is contained in:
2
.github/linters/.dockerfilelintrc
vendored
Normal file
2
.github/linters/.dockerfilelintrc
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
rules:
|
||||
missing_tag: off
|
||||
3
.github/linters/.hadolint.yaml
vendored
Normal file
3
.github/linters/.hadolint.yaml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
ignored:
|
||||
- DL3018 #apk add pin versions
|
||||
- DL3028 #gem install pin versions
|
||||
41
.github/workflows/docker-build-and-push.yml
vendored
41
.github/workflows/docker-build-and-push.yml
vendored
@@ -7,16 +7,18 @@ on:
|
||||
branches:
|
||||
- 'main'
|
||||
# only build when important files change
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- '.github/workflows/docker-build-and-push.yml'
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- '.github/workflows/linter.yml'
|
||||
- '.github/linters/**'
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
# only build when important files change
|
||||
paths:
|
||||
- 'Dockerfile'
|
||||
- '.github/workflows/docker-build-and-push.yml'
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- '.github/workflows/linter.yml'
|
||||
- '.github/linters/**'
|
||||
schedule:
|
||||
# re-run montly to keep image fesh with upstream base images
|
||||
- cron: '0 12 15 * *'
|
||||
@@ -26,18 +28,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Docker meta
|
||||
id: docker_meta
|
||||
uses: crazy-max/ghaction-docker-meta@v2
|
||||
with:
|
||||
# list of Docker images to use as base name for tags
|
||||
images: |
|
||||
bretfisher/shpod
|
||||
ghcr.io/bretfisher/shpod
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2.3.4
|
||||
-
|
||||
# we need qemu and buildx so we can build multiple platforms later
|
||||
name: Set up QEMU
|
||||
@@ -72,6 +64,19 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: Docker meta
|
||||
id: docker_meta
|
||||
uses: docker/metadata-action@v3.3.0
|
||||
with:
|
||||
# list of Docker images to use as base name for tags
|
||||
images: |
|
||||
bretfisher/shpod
|
||||
ghcr.io/bretfisher/shpod
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
type=raw,value=latest
|
||||
-
|
||||
# this will build the images, once per platform,
|
||||
# then push to both Docker Hub and GHCR
|
||||
|
||||
Reference in New Issue
Block a user