Files
calebburke.dev/.gitea/workflows/build-and-publish.yml
T
burkkyy e1664bf724
Build and Push Docker Image / build (push) Failing after 5s
Using hardcoded url for now
2026-06-26 19:38:24 -07:00

33 lines
843 B
YAML

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: http://192.168.1.174:3000
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ github.server_url }}/${{ github.repository }}:latest
${{ github.server_url }}/${{ github.repository }}:${{ github.sha }}
build-args: |
RELEASE_TAG=${{ github.ref_name }}
GIT_COMMIT_HASH=${{ github.sha }}