This commit is contained in:
@@ -1,10 +1,30 @@
|
||||
name: deploy
|
||||
on: [push]
|
||||
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 3 * * *'
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: "homesrv01"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Log in to git.limbosolutions.com docker registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.limbosolutions.com
|
||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push Docker Image
|
||||
id: push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ${{gitea.workspace}}/docker
|
||||
file: ${{gitea.workspace}}/docker/Dockerfile
|
||||
push: true
|
||||
tags: git.limbosolutions/marcio.fernandes/mosquitto:latest
|
||||
|
||||
- name: Invoke portainer mosquitto service webhook
|
||||
run: |
|
||||
curl -X POST "${{secrets.PORTAINER_WEBHOOK_URL}}"
|
||||
Reference in New Issue
Block a user