Skip to content

Commit

Permalink
Node.js 16 actions are deprecated. Please update the following action…
Browse files Browse the repository at this point in the history
…s to use Node.js 20 (#733)
  • Loading branch information
vharseko authored Mar 26, 2024
1 parent 3ce734c commit 41c8adc
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Java ${{ matrix.Java }} (${{ matrix.os }})
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
Expand All @@ -41,7 +41,7 @@ jobs:
MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10
run: mvn --batch-mode --errors --update-snapshots package ${{ steps.maven-profile-flag.outputs.MAVEN_VERIFY_STAGE }} --file pom.xml ${{ steps.maven-profile-flag.outputs.MAVEN_PROFILE_FLAG }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.java }}
retention-days: 5
Expand All @@ -62,7 +62,7 @@ jobs:
ports:
- 5000:5000
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -73,21 +73,21 @@ jobs:
echo "release_version=$git_version_last" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
localhost:5000/${{ github.repository }}
tags: |
type=raw,value=latest
type=raw,value=${{ env.release_version }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
continue-on-error: true
with:
context: ./openam-distribution/openam-distribution-docker
Expand All @@ -111,7 +111,7 @@ jobs:
ports:
- 5000:5000
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -122,21 +122,21 @@ jobs:
echo "release_version=$git_version_last" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
localhost:5000/${{ github.repository }}
tags: |
type=raw,value=alpine
type=raw,value=${{ env.release_version }}-alpine
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
continue-on-error: true
with:
context: ./openam-distribution/openam-distribution-docker
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Java for publishing to Maven Central Repository OSS
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache Maven packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
Expand All @@ -55,42 +55,42 @@ jobs:
if: ${{ github.event.workflow_run.event=='push' && env.MAVEN_USERNAME!='' && env.MAVEN_PASSWORD!=''}}
run: mvn --batch-mode --errors --update-snapshots -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy --file pom.xml
- name: Upload artifacts OpenAM Distribution Kit, containing all distributable artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Distribution Kit, containing all distributable artifacts
path: openam-distribution/openam-distribution-kit/target/*.zip
- name: Upload artifacts OpenAM Distribution SSO Configurator Tools Kit
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Distribution SSO Configurator Tools Kit
path: openam-distribution/openam-distribution-ssoconfiguratortools/target/*.zip
- name: Upload artifacts OpenAM Distribution Fedlet UnConfigured zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Distribution Fedlet UnConfigured zip
path: openam-distribution/openam-distribution-fedlet-unconfigured/target/*.zip
- name: Upload artifacts OpenAM Distribution SSO Admin Tools Kit
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Distribution SSO Admin Tools Kit
path: openam-distribution/openam-distribution-ssoadmintools/target/*.zip
- name: Upload artifacts OpenAM Admin Console
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Admin Console
path: openam-console/target/*.war
- name: Upload artifacts OpenAM Server Component
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Server Component
path: openam-server/target/*.war
- name: Upload artifacts OpenAM Server Only Component
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Server Only Component
path: openam-server-only/target/*.war
- name: Upload artifacts OpenAM Dockerfile
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: OpenAM Dockerfile
path: openam-distribution/openam-distribution-docker/Dockerfile*
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Set up Java for publishing to Maven Central Repository OSS
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache Maven packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -82,14 +82,14 @@ jobs:
needs:
- release-maven
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.releaseVersion }}
fetch-depth: 1
submodules: recursive
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ github.repository }}
Expand All @@ -98,9 +98,9 @@ jobs:
type=raw,value=latest
type=raw,value=${{ github.event.inputs.releaseVersion }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand All @@ -113,7 +113,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
continue-on-error: true
with:
context: ./openam-distribution/openam-distribution-docker
Expand All @@ -129,14 +129,14 @@ jobs:
needs:
- release-maven
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.releaseVersion }}
fetch-depth: 1
submodules: recursive
- name: Docker meta (alpine)
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ github.repository }}
Expand All @@ -145,9 +145,9 @@ jobs:
type=raw,value=alpine
type=raw,value=${{ github.event.inputs.releaseVersion }}-alpine
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand All @@ -161,7 +161,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
continue-on-error: true
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./openam-distribution/openam-distribution-docker
file: ./openam-distribution/openam-distribution-docker/Dockerfile-alpine
Expand Down

0 comments on commit 41c8adc

Please sign in to comment.