Skip to content

Commit

Permalink
Merge pull request #3165 from dzhw/moellerth/issue3157
Browse files Browse the repository at this point in the history
#3157 updated github runner image version to 22.04
  • Loading branch information
tilovillwock committed Dec 16, 2022
2 parents 116395b + c24f98e commit e036aea
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ on:
- 'docs/**'
jobs:
build-and-deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 15
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 15
- name: Cache maven artifacts
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-maven-artifacts
with:
Expand All @@ -30,12 +31,12 @@ jobs:
run: pip install awscli
- name: Install jq for commandline json parsing
run: sudo apt-get -y install jq --allow-unauthenticated
- name: Set up node 14.17.6
uses: actions/setup-node@v2.1.2
- name: Set up node 16
uses: actions/setup-node@v3
with:
node-version: 14.17.6
node-version: 16
- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand All @@ -44,10 +45,11 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install Grunt globally
run: npm install -g grunt-cli
- name: Get branch name
uses: nelonoel/branch-name@v1.0.1
- name: Extract branch name
shell: bash
run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
- name: Build with Maven and deploy with AWS CLI
run: ./deploy/build-and-deploy.sh unused ${BRANCH_NAME}
run: ./deploy/build-and-deploy.sh unused ${{ env.BRANCH }}
env:
REPO_GITHUB_USERNAME: ${{ secrets.REPO_GITHUB_USERNAME }}
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
Expand All @@ -64,7 +66,7 @@ jobs:
branch: gh-pages # The branch the action should deploy to.
folder: target/site/apidocs # The folder the action should deploy.
- name: Report build status via Slack
uses: act10ns/slack@v1
uses: act10ns/slack@v2
if: always()
with:
status: ${{ job.status }}
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,28 @@ on:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up JDK 15
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 15
- name: Cache maven artifacts
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-maven-artifacts
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.m2
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
- name: Set up node 14.17.6
uses: actions/setup-node@v2.1.2
- name: Set up node 16
uses: actions/setup-node@v3
with:
node-version: 14.17.6
node-version: 16
- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
Expand All @@ -38,15 +39,16 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install Grunt globally
run: npm install -g grunt-cli
- name: Get branch name
uses: nelonoel/branch-name@v1.0.1
- name: Extract branch name
shell: bash
run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
- name: Build with Maven
run: ./deploy/build.sh unused ${BRANCH_NAME}
run: ./deploy/build.sh unused ${{ env.BRANCH }}
env:
REPO_GITHUB_USERNAME: ${{ secrets.REPO_GITHUB_USERNAME }}
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
- name: Report build status via Slack
uses: act10ns/slack@v1
uses: act10ns/slack@v2
if: always()
with:
status: ${{ job.status }}
Expand Down

0 comments on commit e036aea

Please sign in to comment.