staxman-old/.forgejo/workflows/build-container.yaml

22 lines
624 B
YAML
Raw Permalink Normal View History

2024-03-30 17:56:46 +00:00
name: Build and push Docker image
on:
push:
branches:
2024-03-30 17:57:10 +00:00
- master
2024-03-30 17:56:46 +00:00
jobs:
build-and-publish:
2024-03-30 18:24:18 +00:00
runs-on: docker
2024-03-30 17:56:46 +00:00
steps:
2024-03-30 18:24:18 +00:00
- uses: actions/checkout@v4
- name: Build
uses: https://codeberg.org/umglurf/kaniko-action@main
2024-03-30 17:56:46 +00:00
with:
2024-03-30 18:24:18 +00:00
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'