Skip to content

Commit

Permalink
Testing Build ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSchmelter committed Oct 2, 2024
1 parent ef8ef61 commit 9ff6b0f
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ on:
- dev

jobs:
checkout_code:
checkout:
runs-on: ubuntu-latest
steps:
- name: Test SSH Key Authorization
if: secrets.SSH_PRIVATE_KEY
run: ssh -T [email protected] || echo "SSH key not authorized"
- name: Checkout Code
uses: actions/checkout@v4
with:
Expand All @@ -35,4 +32,26 @@ jobs:

- name: Show current branch
run: |
git rev-parse --abbrev-ref HEAD
git rev-parse --abbrev-ref HEAD
build:
runs-on: ubuntu-latest
container:
image: amazoncorretto:17
options: --user root

steps:
# Install Gradle 8.10
- name: Install Gradle 8.10
run: |
GRADLE_VERSION=8.10
wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp
unzip /tmp/gradle-${GRADLE_VERSION}-bin.zip -d /opt/gradle
rm /tmp/gradle-${GRADLE_VERSION}-bin.zip
echo "export GRADLE_HOME=/opt/gradle/gradle-${GRADLE_VERSION}" >> $GITHUB_ENV
echo "export PATH=\$GRADLE_HOME/bin:\$PATH" >> $GITHUB_ENV
# Verify Gradle and Java installation
- name: Verify Gradle & Java version
run:
gradle -v && java -v

0 comments on commit 9ff6b0f

Please sign in to comment.