Hamcha
61d699c236
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 6m23s
22 lines
No EOL
624 B
YAML
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' |