Skip to content

Commit

Permalink
Fixing self-signed certificate generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
edufolly committed Jul 8, 2023
1 parent 13fdc35 commit 2b26ab6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
echo "REPO=$GITHUB_REPOSITORY" >> $GITHUB_ENV
echo "OWNER=$GITHUB_REPOSITORY_OWNER" >> $GITHUB_ENV
- name: Check version is used.
- name: Check if version is used
run: |
URL=$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/latest
LATEST=$(curl --silent "$URL" | jq -r .name)
Expand All @@ -45,9 +45,6 @@ jobs:
exit 1
fi
- name: Build
run: ./gradlew build --no-daemon -Dquarkus.package.type=native -Dquarkus.native.container-build=true

- name: Generating self-signed certificate
run: |
openssl req \
Expand All @@ -60,6 +57,9 @@ jobs:
-out cert.pem \
-subj "/C=US/ST=SC/L=Hometown/O=IT/emailAddress=root@localhost/CN=localhost"
- name: Build
run: ./gradlew build --no-daemon -Dquarkus.package.type=native -Dquarkus.native.container-build=true

- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@ jobs:
java-version: '17'
cache: 'gradle'

- name: Generating self-signed certificate
run: |
openssl req \
-newkey rsa:2048 \
-new \
-nodes \
-x509 \
-days 2 \
-keyout key.pem \
-out cert.pem \
-subj "/CN=localhost"
- name: Tests
run: ./gradlew test --no-daemon

0 comments on commit 2b26ab6

Please sign in to comment.