Files
koillection-uploader/.gitea/workflows/build.yaml
T
joseph.nelson4456 749fe95903
Build and Push Image / build-and-push (push) Successful in 1m12s
builds updates and image downloader updates
2026-05-02 23:04:45 -07:00

26 lines
1.0 KiB
YAML

name: Build and Push Image
on: [push]
jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to Gitea Registry
uses: docker/login-action@v2
with:
registry: gitea.nelson-household.com # Replace with your Gitea domain
username: ${{ gitea.actor }}
password: ${{ secrets.RUNNER_TOKEN }}
- name: Delete Old Images and Containers
run: |
docker rm $(docker ps -a -q -f "name=koillection-uploader")
docker rmi $(docker images --format "{{.Repository}}:{{.Tag}}" | grep "koillection-uploader")
- name: Build and Push Image
run: |
docker build -t gitea.nelson-household.com/joseph.nelson4456/koillection-uploader/koilcollection-uploader:${{ github.sha }} .
docker push gitea.nelson-household.com/joseph.nelson4456/koillection-uploader/koilcollection-uploader:${{ github.sha }}