Init the ddns service, create app, aws and ip modules
All checks were successful
Build and deploy / deploy (push) Successful in 41s
All checks were successful
Build and deploy / deploy (push) Successful in 41s
This commit is contained in:
36
.gitea/workflows/deploy.yaml
Normal file
36
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Build and deploy
|
||||
run-name: Build and deploy
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
github-server-url: 'https://gitea.home.joemonk.co.uk'
|
||||
-
|
||||
name: Set up docker
|
||||
run: 'curl -fsSL https://get.docker.com | sh'
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Login to private registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: 'gitea.home.joemonk.co.uk/${{ github.repository }}'
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: 'gitea.home.joemonk.co.uk/${{ gitea.repository }}:latest'
|
||||
Reference in New Issue
Block a user