24 lines
675 B
YAML
24 lines
675 B
YAML
name: Build and Push Image
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.paddington.fi
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.TOKEN }}
|
|
- uses: actions/checkout@master
|
|
- name: Build and push Docker image
|
|
uses: https://code.thetadev.de/actions/kaniko@v1
|
|
with:
|
|
registry: http://gitea-http.gitea:3000
|
|
image: make/myapp
|
|
username: make
|
|
password: ${{ secrets.TOKEN }}
|
|
cache: true |