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