This commit is contained in:
28
.gitea/workflows/build-image.yaml
Normal file
28
.gitea/workflows/build-image.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Build and Publish Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ gitea.server_url }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PAT }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
git.toomuchtaco.net/${{ gitea.repository }}:latest
|
||||
git.toomuchtaco.net/${{ gitea.repository }}:${{ gitea.sha }}
|
||||
Reference in New Issue
Block a user