Skip to content

Merge branch 'prometheus-pve:main' into main #6

Merge branch 'prometheus-pve:main' into main

Merge branch 'prometheus-pve:main' into main #6

---
name: Build and push container image
# yamllint disable-line rule:truthy
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
<<<<<<< HEAD

Check failure on line 17 in .github/workflows/container-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/container-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- uses: actions/checkout@v3
=======
- name: Checkout repository
uses: actions/checkout@v4
>>>>>>> upstream/main
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
uses: docker/metadata-action@v5
id: meta
with:
images: prompve/prometheus-pve-exporter
tags: |
type=pep440,pattern={{version}}
type=pep440,pattern={{major}}.{{minor}}
type=pep440,pattern={{major}}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/arm64,linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}