Compare commits
No commits in common. "main" and "1.0.0" have entirely different histories.
@ -4,39 +4,35 @@ 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
|
||||
|
||||
build:
|
||||
# needs: dockerfile_lint
|
||||
dockerfile_lint:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set lowercase repository name
|
||||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
# https://github.com/hadolint/hadolint-action/releases
|
||||
- uses: hadolint/hadolint-action@v3.1.0
|
||||
with:
|
||||
dockerfile: Dockerfile/base
|
||||
|
||||
build:
|
||||
needs: dockerfile_lint
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Kaniko build
|
||||
# https://github.com/aevea/action-kaniko/releases
|
||||
uses: aevea/action-kaniko@v0.14.0
|
||||
with:
|
||||
# repo setup
|
||||
registry: gitea.sikorski.cloud
|
||||
image: ${{ env.REPO_NAME }}
|
||||
image: ${{ github.repository }}
|
||||
username: rogersik
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
# build options
|
||||
build_file: Dockerfile
|
||||
tag: "${{ env.TAG }}"
|
||||
tag: '${{ env.TAG }}'
|
||||
build_args: |
|
||||
GIT_TAG=${{ env.TAG }}
|
||||
tag_with_latest: true
|
||||
|
@ -1,3 +0,0 @@
|
||||
ignored:
|
||||
- DL3008 # no need to pin versions
|
||||
- DL3018 # no need to pin versions
|
Reference in New Issue
Block a user