Skip to content

chore(git): move centreon-gorgone to centreon-collect repository #11

chore(git): move centreon-gorgone to centreon-collect repository

chore(git): move centreon-gorgone to centreon-collect repository #11

name: docker-gorgone-testing
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- develop
- dev-[2-9][0-9].[0-9][0-9].x
paths:
- ".github/docker/Dockerfile.gorgone-testing-*"
pull_request:
paths:
- ".github/docker/Dockerfile.gorgone-testing-*"
jobs:
get-version:
uses: ./.github/workflows/get-version.yml
dockerize:
needs: [get-version]
runs-on: ubuntu-22.04
strategy:
matrix:
distrib: [alma8, bullseye]
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Login to registry
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
registry: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
- uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
with:
file: .github/docker/Dockerfile.gorgone-testing-${{ matrix.distrib }}
context: .
pull: true
push: true
tags: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/gorgone-testing-${{ matrix.distrib }}:${{ needs.get-version.outputs.major_version }}