Skip to content

Merge pull request #8 from mysteriumnetwork/fix/multiarch-build #8

Merge pull request #8 from mysteriumnetwork/fix/multiarch-build

Merge pull request #8 from mysteriumnetwork/fix/multiarch-build #8

Workflow file for this run

name: docker-ci
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
pg_version: [13, 14, 15]
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 DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
build-args: PG_VER=${{ matrix.pg_version }}
tags: mysteriumnetwork/pgbackup:${{ matrix.pg_version }}
push: true