Files
TentacleBot/.gitea/workflows/docker-publish.yml
Garret Patti 048005f0a8
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 37s
move secrets to env variables add palworld commands
2026-07-10 19:26:26 -04:00

28 lines
643 B
YAML

name: Build and Publish Docker Image
on:
push:
branches: [main]
env:
REGISTRY: git.gpatti.com
IMAGE: git.gpatti.com/gpatti/tentaclebot
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.gpatti.com -u gpatti --password-stdin
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ github.sha }}