2023-01-10 15:03:40 +01:00
|
|
|
name: docker-builder-packaging-plugins
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2023-01-17 11:47:42 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/docker-builder-packaging-plugins.yml"
|
|
|
|
- ".github/docker/*"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/docker-builder-packaging-plugins.yml"
|
|
|
|
- ".github/docker/*"
|
2023-01-10 15:03:40 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
create-and-push-docker:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-12-07 09:45:34 +01:00
|
|
|
- runner: ubuntu-22.04
|
|
|
|
dockerfile: packaging-plugins-centos7
|
|
|
|
image: packaging-plugins-centos7
|
|
|
|
- runner: ubuntu-22.04
|
|
|
|
dockerfile: packaging-plugins-alma8
|
|
|
|
image: packaging-plugins-alma8
|
|
|
|
- runner: ubuntu-22.04
|
|
|
|
dockerfile: packaging-plugins-alma9
|
|
|
|
image: packaging-plugins-alma9
|
|
|
|
- runner: ubuntu-22.04
|
|
|
|
dockerfile: packaging-plugins-bullseye
|
|
|
|
image: packaging-plugins-bullseye
|
|
|
|
- runner: ["self-hosted", "collect-arm64"]
|
|
|
|
dockerfile: packaging-plugins-bullseye
|
|
|
|
image: packaging-plugins-bullseye-arm64
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.runner }}
|
|
|
|
|
2023-01-10 15:03:40 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2023-12-20 12:23:48 +01:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-01-10 15:03:40 +01:00
|
|
|
|
|
|
|
- name: Login to Registry
|
2023-12-20 12:23:48 +01:00
|
|
|
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
|
2023-01-10 15:03:40 +01:00
|
|
|
with:
|
2023-02-23 17:24:11 +01:00
|
|
|
registry: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}
|
|
|
|
username: ${{ secrets.DOCKER_REGISTRY_ID }}
|
|
|
|
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
|
2023-01-10 15:03:40 +01:00
|
|
|
|
|
|
|
- name: Login to proxy registry
|
2023-12-20 12:23:48 +01:00
|
|
|
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
|
2023-01-10 15:03:40 +01:00
|
|
|
with:
|
2023-02-23 17:24:11 +01:00
|
|
|
registry: ${{ vars.DOCKER_PROXY_REGISTRY_URL }}
|
|
|
|
username: ${{ secrets.DOCKER_REGISTRY_ID }}
|
|
|
|
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
|
2023-01-10 15:03:40 +01:00
|
|
|
|
2023-12-20 12:23:48 +01:00
|
|
|
- uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2.10.0
|
2023-01-10 15:03:40 +01:00
|
|
|
|
2023-12-20 12:23:48 +01:00
|
|
|
- uses: docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6 # v3.3.1
|
2023-01-10 15:03:40 +01:00
|
|
|
with:
|
2023-12-07 09:45:34 +01:00
|
|
|
file: .github/docker/Dockerfile.${{ matrix.dockerfile }}
|
2023-01-10 15:03:40 +01:00
|
|
|
context: .
|
2023-02-23 17:24:11 +01:00
|
|
|
build-args: "REGISTRY_URL=${{ vars.DOCKER_PROXY_REGISTRY_URL }}"
|
2023-01-10 15:03:40 +01:00
|
|
|
pull: true
|
|
|
|
push: true
|
2023-12-07 09:45:34 +01:00
|
|
|
tags: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}:latest
|