Skip to content

Nightly build

Nightly build #1297

Workflow file for this run

name: Nightly build
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
env:
IMAGE_REGISTRY: quay.io
IMAGE_NAMESPACE: 389ds
jobs:
build_base_image_and_push:
name: Push container image to quay.io
environment: CI
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- context: ./fedora-minimal
tag: dirsrv:latest
archs: amd64, ppc64le, s390x, arm64
- context: ./c9s
tag: dirsrv:c9s
archs: amd64, ppc64le, s390x, arm64
- context: ./fedora-ldapclients
tag: clients:latest
archs: amd64, ppc64le, s390x, arm64
- context: ./fedora-sample_entries
tag: dirsrv-demo:latest
archs: amd64, arm64
- context: ./devcontainer
tag: devcontainer:latest
archs: amd64, arm64
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
context: ${{ matrix.context }}
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ matrix.tag }}
archs: ${{ matrix.archs }}
containerfiles: |
./${{ matrix.context }}/Containerfile
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}