Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

git config --global advice.detachedHead false

(
cd .github
git clone --depth 1 --branch "${ENTANDO_GITHUB_TOOLS_VERSION}" "https://github.com/entando-ps/github-tools" &>/dev/null
)

. .github/github-tools/lib.sh

configure.start "$1"

if [[ "$GITHUB_REF" == refs/tags/* ]]; then
. .github/github-tools/base.configure --tag "$GITHUB_REF"
else
. .github/github-tools/base.configure "$GH_PR_TITLE" "$GH_PR_NUMBER"
fi

configure.complete
14 changes: 0 additions & 14 deletions .github/pr-title-checker-config.json

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Maven MultiModule PR

env:
ENTANDO_GITHUB_TOOLS_VERSION: "v0.1.1"
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}" \
;
64 changes: 0 additions & 64 deletions .github/workflows/ga-publication.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/post-merge.yml

This file was deleted.

163 changes: 0 additions & 163 deletions .github/workflows/pr.yml

This file was deleted.

Loading
Loading