docker,drbd: ensure build on all Ubuntu kernels #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build driver loader | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- dockerfiles/drbd-driver-loader/* | |
- .github/workflows/build-injector.yaml | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: login to registry | |
env: | |
QUAYIO_USERNAME: ${{ secrets.QUAYIO_USERNAME }} | |
QUAYIO_PASSWORD: ${{ secrets.QUAYIO_PASSWORD }} | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
run: | | |
docker login --username=${QUAYIO_USERNAME} --password-stdin quay.io <<< "${QUAYIO_PASSWORD}" | |
docker login --username=${DOCKERHUB_USERNAME} --password-stdin docker.io <<< "${DOCKERHUB_PASSWORD}" | |
- name: push images | |
run: | | |
cd dockerfiles/drbd-driver-loader | |
make upload REGISTRY="quay.io/piraeusdatastore docker.io/piraeusdatastore" |