This commit is contained in:
@@ -1,10 +1,30 @@
|
|||||||
name: deploy
|
on:
|
||||||
on: [push]
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 * * *'
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: "homesrv01"
|
runs-on: "homesrv01"
|
||||||
steps:
|
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
|
- name: Invoke portainer mosquitto service webhook
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "${{secrets.PORTAINER_WEBHOOK_URL}}"
|
curl -X POST "${{secrets.PORTAINER_WEBHOOK_URL}}"
|
||||||
@@ -1,10 +1,7 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
mosquitto:
|
mosquitto:
|
||||||
build:
|
image: git.limbosolutions/marcio.fernandes/mosquitto:latest
|
||||||
context: ./services/mosquitto
|
|
||||||
pull_policy: build
|
|
||||||
image: mylimbo/eclipse-mosquitto:latest
|
|
||||||
ports:
|
ports:
|
||||||
- '1883:1883'
|
- '1883:1883'
|
||||||
- '8883:8883'
|
- '8883:8883'
|
||||||
|
|||||||
Reference in New Issue
Block a user