Gachamelia/.gitea/workflows/build-docker.yml

29 lines
759 B
YAML
Raw Normal View History

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