5 Commits
v0.4 ... master

Author SHA1 Message Date
Sven Holz
87b78f4072 workflow added 2022-06-21 11:36:06 +02:00
Sven Holz
b41527a2e6 workflow added 2022-06-21 11:34:28 +02:00
Sven Holz
8b173ff9ee workflow added 2022-06-21 11:21:43 +02:00
Sven Holz
8407bf1250 workflow added 2022-06-21 11:19:15 +02:00
Sven Holz
b51db3e64d moved from self build docker image to gockerhub 2022-06-21 11:13:49 +02:00
4 changed files with 73 additions and 2 deletions

65
.github/workflows/git2docker.yml vendored Normal file
View File

@@ -0,0 +1,65 @@
# This is a basic workflow to help you get started with Actions
name: CI to Docker Hub
# Controls when the workflow will run
##on:
# Triggers the workflow on push or pull request events but only for the "master" branch
## push:
## branches: [ "master" ]
# Only update with new tag pushed
on:
push:
tags:
- "v*.*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Check Out Repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./Docker_Build/
file: ./Docker_Build/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/pylatemon:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@@ -293,6 +293,12 @@ Contributors names and contact info
## Version History ## Version History
- v0.4a
- fixed tag recognition for buildprocess
- v0.4
- moved from self build iamge to dockerhub
- v0.3a - v0.3a
- ping timeout added - ping timeout added
- cleanup - cleanup

View File

@@ -120,7 +120,7 @@ services:
latency-monitor: latency-monitor:
container_name: latency-monitor container_name: latency-monitor
hostname: latency-monitor hostname: latency-monitor
build: ./Docker_Build image: planetespresso/pylatemon
depends_on: depends_on:
- influxdb - influxdb
restart: always restart: always

View File

@@ -6,7 +6,7 @@ services:
latency-monitor: latency-monitor:
container_name: latency-monitor container_name: latency-monitor
hostname: latency-monitor hostname: latency-monitor
build: ./Docker_Build image: planetespresso/pylatemon
restart: always restart: always
volumes: volumes:
# - ./latency-monitor/config.ini:/app/config.ini:ro # UNCOMMENT IF NEEDED # - ./latency-monitor/config.ini:/app/config.ini:ro # UNCOMMENT IF NEEDED