28 lines
632 B
YAML
28 lines
632 B
YAML
---
|
|
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "master" ]
|
|
release:
|
|
types: [ "published" ]
|
|
|
|
jobs:
|
|
build-image:
|
|
runs-on: flakes-action
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and push
|
|
uses: https://code.252.no/tommy/kaniko-action@latest
|
|
with:
|
|
cache: false
|
|
context: /workspace/${{ github.repository }}
|
|
docker_file: Containerfile.multiarch
|
|
credentials: |
|
|
code.252.no=${{ github.repository_owner }}:${{ secrets.REGISTRY_TOKEN }}
|
|
destinations: "code.252.no/tommy/git-sv:latest"
|
|
push: 'true'
|