add workflow

This commit is contained in:
2025-11-25 12:11:40 -08:00
parent 76baf004ef
commit b656ee1d8f

28
workflows/docker.yml Normal file
View File

@@ -0,0 +1,28 @@
name: Build craisin-cove
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v2
run: docker login --username ${{ secrets.REGISTRY_USER }} --password ${{ secrets.REGISTRY_PASSWORD }}
- name: Build Docker Image
run: docker build -t gitea.craisin.tech/craisin/craisin_cove:latest .
- name: Push Docker Images
run: docker push gitea.craisin.tech/craisin/craisin_cove:latest
- name: Log out from registry
if: always()
run: docker logout gitea.craisin.tech