This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
staxman-old/.forgejo/workflows/build-container.yaml
Hamcha 61d699c236
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 6m23s
ci: kaniko!
2024-03-30 19:24:18 +01:00

22 lines
No EOL
624 B
YAML

name: Build and push Docker image
on:
push:
branches:
- master
jobs:
build-and-publish:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Build
uses: https://codeberg.org/umglurf/kaniko-action@main
with:
cache: true
cache_repo: ${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}/cache
credentials: |
${{ secrets.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}
destinations: |
${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}:latest
push: 'true'