-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (39 loc) · 1.28 KB
/
docker-web-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}