add docker image build and push

This commit is contained in:
Jeremy McClure 2025-03-22 19:37:10 -04:00
parent 771700d6c8
commit d1568f1b97
Signed by: jeremy
GPG Key ID: CA27BD8443157067

View File

@ -0,0 +1,27 @@
name: Docker Build and Push
run-name: ${{ gitea.actor }} is running Docker build and push
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to local Gitea registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
username: ${{ vars.ACTIONS_USER }}
password: ${{ secrets.PACKAGES_TOKEN }}
- name: Docker Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ vars.REGISTRY }}/${{ gitea.repository }}:latest