[GHA-Build] Separate distro and ls extensions builds. Initial trial of clearing S3 caches

This commit is contained in:
aboyko
2023-07-31 14:48:59 -04:00
parent 657a255f97
commit 44a46ec8a9
6 changed files with 114 additions and 64 deletions

26
.github/workflows/clear_s3_cache.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Clear S3 Cache for path
on:
workflow_dispatch:
inputs:
path:
description: Path in the S3 bucket dist.springsource.com without leading slash
required: true
type: string
jobs:
clear-s3-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
ref: ${{ inputs.ref }}
sparse-checkout: |
.github
- name: Invalidate S3 Cloudfront Cache
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TOOLS_S3_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLS_S3_SECRET_KEY }}
run: |
${{ github.workspace }}/.github/scripts/clear-s3-caches.sh ${{ inputs.path }}

View File

@@ -1,59 +0,0 @@
name: Release - Eclipse Build
concurrency:
group: release-eclipse
cancel-in-progress: true
on:
workflow_dispatch:
jobs:
eclipse-ls-extension:
runs-on: ubuntu-latest
steps:
- name: Timestamp
id: timestamp
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: ./.github/workflows/eclipse-ls-extensions-build.yml
with:
eclipse_profile: 'e427'
build_type: 'release'
skip_tests: true
sts4-language-servers-version: ${{ steps.timestamp.outputs.date }}
secrets: inherit
outputs:
sts4-language-servers-version: ${{ steps.timestamp.outputs.date }}
e427-distro:
runs-on: ubuntu-latest
needs: [ eclipse-ls-extension ]
steps:
- uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e427'
build_type: 'release'
p2-qualifier: 'RELEASE'
sts4-language-servers-version: ${{ needs.eclipse-ls-extension.outputs.sts4-language-servers-version }}
e428-distro:
runs-on: ubuntu-latest
needs: [ eclipse-ls-extension ]
steps:
- uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e428'
build_type: 'release'
p2-qualifier: 'RELEASE'
sts4-language-servers-version: ${{ needs.eclipse-ls-extension.outputs.sts4-language-servers-version }}
e429-distro:
runs-on: ubuntu-latest
needs: [ eclipse-ls-extension ]
steps:
- uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e429'
build_type: 'release'
p2-qualifier: 'RELEASE'
sts4-language-servers-version: ${{ needs.eclipse-ls-extension.outputs.sts4-language-servers-version }}

View File

@@ -0,0 +1,45 @@
name: Release - Eclipse Build
concurrency:
group: release-eclipse
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
sts4-language-servers-version:
description: Last segments of an s3 path for p2 Repo for eclipse ls extensions
required: true
type: string
jobs:
e427-distro:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e427'
build_type: 'release'
p2-qualifier: 'RELEASE'
sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}
e428-distro:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e428'
build_type: 'release'
p2-qualifier: 'RELEASE'
sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}
e429-distro:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
with:
eclipse_profile: 'e429'
build_type: 'release'
p2-qualifier: 'RELEASE'
sts4-language-servers-version: ${{ inputs.sts4-language-servers-version }}

View File

@@ -0,0 +1,26 @@
name: Release - Eclipse LS Extensions Build
concurrency:
group: release-eclipse-ls-extensions
cancel-in-progress: true
on:
workflow_dispatch:
jobs:
eclipse-ls-extension:
runs-on: ubuntu-latest
steps:
- name: Timestamp
id: timestamp
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: ./.github/workflows/eclipse-ls-extensions-build.yml
with:
eclipse_profile: 'e427'
build_type: 'release'
skip_tests: true
sts4-language-servers-version: ${{ steps.timestamp.outputs.date }}
secrets: inherit
outputs:
sts4-language-servers-version: ${{ steps.timestamp.outputs.date }}

View File

@@ -4,12 +4,12 @@ concurrency:
group: eclipse-ls-extension-snapshot
cancel-in-progress: true
#on:
# workflow_dispatch:
on:
push:
branches:
- 'main'
workflow_dispatch:
#on:
# push:
# branches:
# - 'main'
jobs:
eclipse-ls-extensions: