Skip to content

Commit

Permalink
[skip-release] Add action to publish release artifacts (#692)
Browse files Browse the repository at this point in the history
* Add action to publish release artifacts and fix action logic
  • Loading branch information
NyakudyaA authored Oct 15, 2024
1 parent 75ffbb8 commit 38e20e8
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 17 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
timeout-minutes: 5
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
)
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
Expand Down Expand Up @@ -58,8 +60,10 @@ jobs:
timeout-minutes: 15
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
)
strategy:
matrix:
geoserverMajorVersion:
Expand Down Expand Up @@ -135,8 +139,10 @@ jobs:
timeout-minutes: 20
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
)
needs: [build-geoserver-docker-image, run-scenario-tests]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -168,8 +174,10 @@ jobs:
timeout-minutes: 20
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
)
needs: [ build-geoserver-docker-image, build-activemq-docker-image]
strategy:
matrix:
Expand Down Expand Up @@ -216,8 +224,10 @@ jobs:
github.event_name == 'pull_request' &&
github.event.pull_request.base.repo.url == github.event.pull_request.head.repo.url &&
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
)
runs-on: ubuntu-latest
timeout-minutes: 20
needs: [ build-geoserver-docker-image, run-scenario-tests ]
Expand Down
41 changes: 39 additions & 2 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
deploy-image:
if: |
github.actor != 'dependabot[bot]' &&
(!contains(github.event.comment.body, '/skiprelease') ||
!contains(github.event.comment.title, '[skiprelease]'))
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
) && github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
timeout-minutes: 15
env:
Expand Down Expand Up @@ -78,4 +80,39 @@ jobs:
cache-to: type=gha,scope=prod
target: geoserver-prod

publish_release_artifacts:
runs-on: ubuntu-latest
timeout-minutes: 5
if: |
github.actor != 'dependabot[bot]' &&
!(
contains(github.event.pull_request.title, '[skip-release]') ||
contains(github.event.comment.body, '/skiprelease')
) && github.event.workflow_run.conclusion == 'success'
needs: [deploy-image]
strategy:
matrix:
geoserverMajorVersion:
- 2
geoserverMinorVersion:
- minor: 25
patch: 2
steps:
- name: Get Current Date
id: current_date
run: echo "formatted=$(date -u +%Y.%m.%d)" >> $GITHUB_OUTPUT

- name: Get Latest Commit Hash
id: latest_commit_hash
run: echo "commit=$(git log -n 1 --pretty=format:%H)" >> $GITHUB_OUTPUT

- name: publish_release
id: tag_releases
run: |
gh release create v${{ matrix.geoserverMajorVersion }}.${{ matrix.geoserverMinorVersion.minor }}.${{ matrix.geoserverMinorVersion.patch }}--v${{ steps.current_date.outputs.formatted }}--${{ steps.latest_commit_hash.outputs.commit }} --generate-notes --target ${{ steps.latest_commit_hash.outputs.commit }} --repo $GITHUB_REPOSITORY
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}




10 changes: 5 additions & 5 deletions clustering/activemq-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ FROM bellsoft/liberica-openjdk-alpine:13 AS activemq-prod

LABEL maintainer="Alessio Fabiani <[email protected]>"

ENV ACTIVEMQ_VERSION 5.17.1
ENV ACTIVEMQ apache-activemq-$ACTIVEMQ_VERSION
ENV ACTIVEMQ_HOME /opt/activemq/
ENV ACTIVEMQ_CONF $ACTIVEMQ_HOME/conf/
ENV ACTIVEMQ_LIB $ACTIVEMQ_HOME/lib/optional/
ENV ACTIVEMQ_VERSION=5.17.1
ENV ACTIVEMQ=apache-activemq-$ACTIVEMQ_VERSION
ENV ACTIVEMQ_HOME=/opt/activemq/
ENV ACTIVEMQ_CONF=$ACTIVEMQ_HOME/conf/
ENV ACTIVEMQ_LIB=$ACTIVEMQ_HOME/lib/optional/


RUN apk add --update curl && \
Expand Down

0 comments on commit 38e20e8

Please sign in to comment.