mgirate to gitea runner
This commit is contained in:
39
.gitea/workflows/tag-release.yaml
Normal file
39
.gitea/workflows/tag-release.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
name: docker build with git tag
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[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
|
||||
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
|
||||
image: ${{ github.repository }}
|
||||
username: rogersik
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
# build options
|
||||
build_file: Dockerfile
|
||||
tag: '${{ env.TAG }}'
|
||||
build_args: |
|
||||
GIT_TAG=${{ env.TAG }}
|
||||
tag_with_latest: true
|
||||
cache: true
|
Reference in New Issue
Block a user