Improved docker push github action

This commit is contained in:
Esteban Sánchez 2023-11-21 09:44:22 +01:00
parent a6a4129daf
commit e2a8508cae
No known key found for this signature in database
GPG Key ID: 9342C91BA286AB16
2 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@ jobs:
latest=auto
tags: |
# minimal
type=pep440,pattern=v{{version}}
type=semver,pattern=v{{version}}
images: ${{ secrets.REGISTRY_USERNAME }}/prometheus-qbittorrent-exporter
- name: Login to DockerHub
@ -42,6 +42,7 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64,linux/386
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Docker meta
id: metaghcr
@ -51,7 +52,7 @@ jobs:
latest=auto
tags: |
# minimal
type=pep440,pattern=v{{version}}
type=semver,pattern=v{{version}}
images: ${{ secrets.REGISTRY_USERNAME }}/prometheus-qbittorrent-exporter
- name: Login to Github Container Registry
@ -67,3 +68,4 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64,linux/386
tags: ${{ steps.metaghcr.outputs.tags }}
labels: ${{ steps.metaghcr.outputs.labels }}

View File

@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.6'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip