Skip to content

docker-web-dependencies #121

docker-web-dependencies

docker-web-dependencies #121

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/centreon-web/**/Dockerfile.dependencies'
schedule:
- cron: '0 2 * * *'
jobs:
get-version:
if: github.event.pull_request.base.repo.name == 'centreon'
uses: ./.github/workflows/get-version.yml
with:
version_file: centreon/www/install/insertBaseConf.sql
dockerize:
needs: [get-version]
if: needs.get-version.outputs.pull_request_environment == 'internal_contributor'
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
distrib: [alma8, alma9, bullseye, bookworm, jammy]
steps:
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Login to registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
env:
DOCKER_BUILD_RECORD_UPLOAD: false
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_CHECKS_ANNOTATIONS: false
with:
file: .github/docker/centreon-web/${{ matrix.distrib }}/Dockerfile.dependencies
context: .
build-args: |
"VERSION=${{ needs.get-version.outputs.major_version }}"
"RELEASE_CLOUD=${{ needs.get-version.outputs.release_cloud }}"
pull: true
push: true
tags: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/centreon-web-dependencies-${{ matrix.distrib }}:${{ needs.get-version.outputs.major_version }}
secrets: |
"ARTIFACTORY_INTERNAL_REPO_USERNAME=${{ secrets.ARTIFACTORY_INTERNAL_REPO_USERNAME }}"
"ARTIFACTORY_INTERNAL_REPO_PASSWORD=${{ secrets.ARTIFACTORY_INTERNAL_REPO_PASSWORD }}"