Skip to content

Bump docker/build-push-action from 4 to 5 (#31) #503

Bump docker/build-push-action from 4 to 5 (#31)

Bump docker/build-push-action from 4 to 5 (#31) #503

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: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
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
- 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