fix workflows

This commit is contained in:
d3vyce 2023-12-19 23:06:38 +01:00
parent 2e58083957
commit 90f9414d2d
4 changed files with 13 additions and 15 deletions

View File

@ -5,7 +5,7 @@ on:
types: [published]
jobs:
build docker:
build-docker:
runs-on: ubuntu-latest
steps:
- name: checkout code
@ -17,7 +17,7 @@ jobs:
- name: Login to Docker registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
@ -26,4 +26,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:latest,${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ github.ref_name }}

View File

@ -9,8 +9,8 @@ jobs:
uses: actions/checkout@v3
- name: Set up Python 3.11
run: |
apt update
apt install -y python3 python3-pip
sudo apt update
sudo apt install -y python3 python3-pip
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip

View File

@ -8,14 +8,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes python3-setuptools python3-wheel
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
- name: Build
run: |
python3 -m build
run: python3 -m build
- uses: actions/upload-artifact@v3
with:
path: ./dist

View File

@ -12,15 +12,11 @@ teleinfo-exporter --help
```
### Docker
```
docker pull teleinfo-exporter
```
Minimal Docker compose:
```yaml
services:
web:
image: teleinfo_exporter:latest
image: ghcr.io/d3vyce/teleinfo-exporter:latest
environment:
- BROKER_HOSTNAME=10.10.0.10
ports: