Add build and deploy action
All checks were successful
Build and Deploy / build-and-push (push) Successful in 24s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 24s
This commit is contained in:
34
.gitea/workflows/build-and-deploy.yaml
Normal file
34
.gitea/workflows/build-and-deploy.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.ulfrx.dev
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: git.ulfrx.dev/ulfr/recipe-mockup:latest
|
||||
|
||||
- name: Trigger Dockhand redeploy
|
||||
run: |
|
||||
curl -fsS "${{ secrets.DOCKHAND_WEBHOOK_URL }}?secret=${{ secrets.DOCKHAND_WEBHOOK_SECRET }}"
|
||||
Reference in New Issue
Block a user