-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.46 KB
/
build.yml
File metadata and controls
53 lines (45 loc) · 1.46 KB
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
48
49
50
51
52
53
name: Docker MultiModule PR
env:
ENTANDO_GITHUB_TOOLS_VERSION: "v0.1.2"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_PR_TITLE: ${{ github.event.pull_request.title }}
GH_PR_NUMBER: ${{ github.event.pull_request.number }}
GH_PR_RUN_NUMBER: ${{ github.run_number }}
IMAGES_TO_BUILD: "Dockerfile.rocky9:entando-postgres-rocky,Dockerfile.ubi9:entando-postgres-ubi"
ENTANDO_CRANE_VERSION: ${{ vars.ENTANDO_CRANE_VERSION || 'v0.10.0' }}
GITHUB_REF: ${{ github.ref }}
on:
push:
branches: [ "develop", "release/*" ]
tags: [ 'v*' ]
pull_request:
branches: [ "develop", "release/*" ]
jobs:
publish:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: if [ -f ".github/configure" ]; then . .github/configure "publish"; fi
- name: Build Docker image
run: |
.github/github-tools/docker.multiBuild \
"${IMAGES_TO_BUILD}" \
"${ARTIFACT_VERSION}" \
"${{ vars.DOCKER_ORG }}" \
;
- name: Publish Docker image
run: |
GH_DO_COMMENT=true \
.github/github-tools/docker.multiPublish \
"${IMAGES_TO_BUILD}" \
"${ARTIFACT_VERSION}" \
"${{ vars.DOCKER_ORG }}" \
"${{ vars.DOCKER_REGISTRY }}" \
"${{ secrets.DOCKER_USERNAME }}" \
"${{ secrets.DOCKER_PASSWORD }}" \
"${ARTIFACT_PUB_TYPE}" \
;