2024-11-01 14:11:45 +00:00
|
|
|
name: Build and Push Docker Image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-11-01 14:13:28 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-11-01 14:11:45 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build and Push with Kaniko
|
|
|
|
uses: aevea/action-kaniko@master
|
|
|
|
with:
|
|
|
|
image: git.crystalyx.net/${{ gitea.repository }}
|
|
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
registry: git.crystalyx.net
|
|
|
|
tag: ${{ github.ref_name }},latest
|
|
|
|
cache: true
|
|
|
|
cache_registry: git.crystalyx.net/${{ gitea.repository }}/cache
|
|
|
|
extra_args: |
|
|
|
|
--snapshot-mode=redo
|
|
|
|
--use-new-run
|
|
|
|
--compressed-caching=false
|