Skip to content

Docker nightly

Docker nightly #656

Workflow file for this run

name: Docker nightly
on:
push:
branches:
- master
tags-ignore:
- '*'
workflow_dispatch:
jobs:
push_to_registries:
name: Push Docker image to github and dockerhub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
fail-fast: false
matrix:
target:
- omd-labs-rocky
- omd-labs-debian
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.PTA }}
- name: Push to Docker Hub
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile.${{ matrix.target }}
build-args: OMD_VERSION=${{ github.ref }}
tags: consol/${{ matrix.target }}:nightly
platforms: linux/amd64,linux/arm64
- name: Build container image
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile.${{ matrix.target }}
build-args: OMD_VERSION=${{ github.ref }}
tags: ghcr.io/consol/omd-labs-docker/${{ matrix.target }}:nightly
platforms: linux/amd64,linux/arm64