mirror of
https://github.com/d3vyce/teleinfo-exporter.git
synced 2025-04-03 00:33:22 +02:00
fix workflows
This commit is contained in:
parent
2e58083957
commit
90f9414d2d
6
.github/workflows/docker-build-version.yml
vendored
6
.github/workflows/docker-build-version.yml
vendored
@ -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 }}
|
||||
|
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -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
|
||||
|
12
.github/workflows/pypi-build-version.yml
vendored
12
.github/workflows/pypi-build-version.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user