Skip to content

docker-web-dependencies #240

docker-web-dependencies

docker-web-dependencies #240

name: docker-web-dependencies
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
paths:
- '.github/docker/Dockerfile.centreon-web-dependencies*'
schedule:
- cron: '0 2 * * *'
jobs:
get-version:
uses: ./.github/workflows/get-version.yml
with:
version_file: centreon/www/install/insertBaseConf.sql
dockerize:
needs: [get-version]
runs-on: ubuntu-22.04
strategy:
matrix:
distrib: [alma8, alma9, bullseye]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
file: .github/docker/Dockerfile.centreon-web-dependencies-${{ matrix.distrib }}
context: .
pull: true
push: true
tags: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/centreon-web-dependencies-${{ matrix.distrib }}:${{ needs.get-version.outputs.major_version }}