Skip to content

Merge pull request #6 from brendanbank/5-several-recommendations #2

Merge pull request #6 from brendanbank/5-several-recommendations

Merge pull request #6 from brendanbank/5-several-recommendations #2

name: DockerBuildAndPush
on:
push:
branches:
- master
- docker
jobs:
multi:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: true
tags: |
ghcr.io/ncareau/gpsd-prometheus-exporter:latest