28 lines
636 B
YAML
28 lines
636 B
YAML
name: Build Image using Dockerfile
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Build image
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: docker/metadata-action@v3
|
|
id: metadata
|
|
with:
|
|
images: git.thebarrens.nu/${{ gitea.repository}}
|
|
- uses: docker/login-action@v2
|
|
with:
|
|
registry: git.thebarrens.nu
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.GITEA_TOKEN }}
|
|
- uses: int1128/kaniko-action@v1
|
|
with:
|
|
push: true
|
|
tags: latest
|
|
labels: ${{ steps.metadata.outputs.labels }}
|
|
cache: false
|