Skip to content

OPSEXP-2874 Bump Search Services to 2.0.12 (#965) #36

OPSEXP-2874 Bump Search Services to 2.0.12 (#965)

OPSEXP-2874 Bump Search Services to 2.0.12 (#965) #36

Workflow file for this run

name: "release"
on:
workflow_dispatch:
push:
tags:
- v[0-9]+\.[0-9]+\.[0-9]+
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Get tag name
shell: bash
run: |
if [ "${{ github.event_name }}" != "workflow_dispatch" ]; then
VERSION="${GITHUB_REF##*/v}"
else
VERSION="0.0.0"
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Generate Ansible playbook v${{ env.VERSION }}
run: |
./scripts/generate-zip.sh
- name: Configure AWS credentials
if: github.event_name != 'workflow_dispatch'
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
aws-access-key-id: ${{ secrets.S3_STAGING_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.S3_STAGING_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Publish to S3 staging bucket
if: github.event_name != 'workflow_dispatch'
run: |
aws s3 cp alfresco-ansible-deployment-${VERSION}.zip s3://alfresco-artefacts-staging/enterprise/alfresco-ansible-deployment/
- name: Publish on Nexus
if: github.event_name != 'workflow_dispatch'
env:
NEXUS_USERNAME: ${{ secrets.nexus_username }}
NEXUS_PASSWORD: ${{ secrets.nexus_password }}
run: >-
curl -F "r=releases" -F "g=org.alfresco" -F "a=alfresco-ansible-deployment"
-F "v=${VERSION}" -F "p=zip" -F "file=@alfresco-ansible-deployment-${VERSION}.zip"
-u "$NEXUS_USERNAME:$NEXUS_PASSWORD"
https://artifacts.alfresco.com/nexus/service/local/artifact/maven/content