This commit is contained in:
@@ -1,28 +1,30 @@
|
|||||||
name: Build and Push Image
|
name: Build and Push Docker Image
|
||||||
on: [push]
|
on:
|
||||||
|
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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
- name: Login to Gitea Registry
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: gitea.paddington.fi # Replace with your Gitea instance URL
|
registry: gitea.paddington.fi
|
||||||
username: make
|
username: make
|
||||||
password: ${{ secrets.TOKEN }}
|
password: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Set up Buildx
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64
|
tags: make/birdspotter:latest
|
||||||
tags: |
|
platforms: linux/amd64,linux/arm64
|
||||||
gitea.paddington.fi/make/birdspotter
|
|
||||||
Reference in New Issue
Block a user