Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
8040b34ebc | |||
e6c14f91f5 | |||
cbe10fdaf1 | |||
5b6029f88f |
@ -4,35 +4,39 @@ name: docker build with git tag
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '[0-9]+.[0-9]+.[0-9]+'
|
- "[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dockerfile_lint:
|
# dockerfile_lint:
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
# https://github.com/hadolint/hadolint-action/releases
|
# # https://github.com/hadolint/hadolint-action/releases
|
||||||
- uses: hadolint/hadolint-action@v3.1.0
|
# - uses: hadolint/hadolint-action@v3.1.0
|
||||||
with:
|
# with:
|
||||||
dockerfile: Dockerfile/base
|
# dockerfile: Dockerfile/base
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: dockerfile_lint
|
# needs: dockerfile_lint
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set lowercase repository name
|
||||||
|
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Kaniko build
|
- name: Kaniko build
|
||||||
# https://github.com/aevea/action-kaniko/releases
|
# https://github.com/aevea/action-kaniko/releases
|
||||||
uses: aevea/action-kaniko@v0.14.0
|
uses: aevea/action-kaniko@v0.14.0
|
||||||
with:
|
with:
|
||||||
# repo setup
|
# repo setup
|
||||||
image: ${{ github.repository }}
|
registry: gitea.sikorski.cloud
|
||||||
|
image: ${{ env.REPO_NAME }}
|
||||||
username: rogersik
|
username: rogersik
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
# build options
|
# build options
|
||||||
build_file: Dockerfile
|
build_file: Dockerfile
|
||||||
tag: '${{ env.TAG }}'
|
tag: "${{ env.TAG }}"
|
||||||
build_args: |
|
build_args: |
|
||||||
GIT_TAG=${{ env.TAG }}
|
GIT_TAG=${{ env.TAG }}
|
||||||
tag_with_latest: true
|
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
|
Reference in New Issue
Block a user