This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
name: Build and Deploy Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to GHCR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.rhost.ovh
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: git.rhost.ovh/${{ github.repository }}:latest
|
||||||
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
cron:
|
cron:
|
||||||
image: registry.docker.rhost.ovh/updateip:0.0.2
|
image: git.rhost.ovh/ryjek/update-homelab-ip:0.0.1
|
||||||
platform: linux/x86_64
|
platform: linux/x86_64
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: service/Dockerfile
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
command: >
|
command: >
|
||||||
bash -c "printenv > /etc/environment && cron -f"
|
bash -c "printenv > /etc/environment && cron -f"
|
||||||
|
|||||||
Reference in New Issue
Block a user