This commit is contained in:
@@ -1,20 +1,33 @@
|
||||
name: Build and Push Image
|
||||
run-name: ${{ gitea.actor }} made changes so running Gitea actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Login to GitHub Container Registry
|
||||
run: docker login -u make -p ${{ secrets.TOKEN }} gitea.paddington.fi
|
||||
- uses: actions/checkout@master
|
||||
- name: Build and push Docker image
|
||||
uses: https://code.thetadev.de/actions/kaniko@v1
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
registry: http://gitea-http.gitea:3000
|
||||
image: make/myapp
|
||||
username: make
|
||||
password: ${{ secrets.TOKEN }}
|
||||
cache: true
|
||||
driver-opts: image=moby/buildkit:latest
|
||||
install: true
|
||||
network: host
|
||||
buildkitd-config-inline: |
|
||||
[registry."gitea-http.gitea:3000"]
|
||||
http = true
|
||||
insecure = true
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: gitea-http.gitea:3000/make/birdspotter:latest
|
||||
allow:
|
||||
security.insecure
|
||||
Reference in New Issue
Block a user