27 lines
901 B
YAML
27 lines
901 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
# https://github.com/hadolint/hadolint/releases
|
|
HADOLINT_VERSION: "2.12.0"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Pull Docker Image for caching
|
|
run: docker pull registry.sikorski.cloud/rogersik/hadolint:latest || exit 0
|
|
- name: Build docker image
|
|
run: |
|
|
docker build . \
|
|
--cache-from registry.sikorski.cloud/rogersik/hadolint:latest \
|
|
--file Dockerfile \
|
|
--tag registry.sikorski.cloud/rogersik/hadolint:$HADOLINT_VERSION
|
|
--tag registry.sikorski.cloud/rogersik/hadolint:"2"
|
|
--tag registry.sikorski.cloud/rogersik/hadolint:"2.12"
|
|
--tag registry.sikorski.cloud/rogersik/hadolint:latest
|
|
- name: Push docker image
|
|
run: docker push registry.sikorski.cloud/rogersik/hadolint --all-tags |