Build and publish
Build and Push Docker Image / build (push) Failing after 2m7s

This commit is contained in:
2026-06-26 19:20:00 -07:00
parent 4b91ba0936
commit 8457a97c5f
+32
View File
@@ -0,0 +1,32 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.GITEA_URL }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ vars.GITEA_URL }}/${{ github.repository }}:latest
${{ vars.GITEA_URL }}/${{ github.repository }}:${{ github.sha }}
build-args: |
RELEASE_TAG=${{ github.ref_name }}
GIT_COMMIT_HASH=${{ github.sha }}