Files
openclaw-proxy/.gitea/workflows/build-deploy.yml
Joshua Adkisson 28bdc24a6c
All checks were successful
Build and Push / build (push) Successful in 4m49s
Add Docker Hub login to avoid rate limits
2026-04-02 10:58:44 -05:00

39 lines
962 B
YAML

name: Build and Push
on:
push:
branches: [main]
env:
REGISTRY: gitea.pitthappens.dyndns.org
IMAGE_NAME: ragincajunbanjo/openclaw-proxy
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ gitea.sha }}