Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b41527a2e6 | ||
|
|
8b173ff9ee | ||
|
|
8407bf1250 | ||
|
|
b51db3e64d |
65
.github/workflows/git2docker.yml
vendored
Normal file
65
.github/workflows/git2docker.yml
vendored
Normal 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 }}
|
||||
@@ -293,6 +293,9 @@ Contributors names and contact info
|
||||
|
||||
## Version History
|
||||
|
||||
- v0.4
|
||||
- moved from self build iamge to dockerhub
|
||||
|
||||
- v0.3a
|
||||
- ping timeout added
|
||||
- cleanup
|
||||
|
||||
@@ -120,7 +120,7 @@ services:
|
||||
latency-monitor:
|
||||
container_name: latency-monitor
|
||||
hostname: latency-monitor
|
||||
build: ./Docker_Build
|
||||
image: planetespresso/pylatemon
|
||||
depends_on:
|
||||
- influxdb
|
||||
restart: always
|
||||
|
||||
@@ -6,7 +6,7 @@ services:
|
||||
latency-monitor:
|
||||
container_name: latency-monitor
|
||||
hostname: latency-monitor
|
||||
build: ./Docker_Build
|
||||
image: planetespresso/pylatemon
|
||||
restart: always
|
||||
volumes:
|
||||
# - ./latency-monitor/config.ini:/app/config.ini:ro # UNCOMMENT IF NEEDED
|
||||
|
||||
Reference in New Issue
Block a user