This commit is contained in:
@@ -1,30 +1,17 @@
|
|||||||
name: Build and Push Docker Image
|
name: Build and Push Image
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
steps:
|
||||||
uses: docker/login-action@v3
|
- name: Build and push Docker image
|
||||||
|
uses: https://code.thetadev.de/actions/kaniko@v1
|
||||||
with:
|
with:
|
||||||
registry: gitea.paddington.fi
|
registry: gitea.paddington.fi
|
||||||
|
image: make/birdspotter
|
||||||
username: make
|
username: make
|
||||||
password: ${{ secrets.TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
|
cache: true
|
||||||
- name: Set up Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and push image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: make/birdspotter:latest
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
Reference in New Issue
Block a user