Skip to content

Commit

Permalink
add test script.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Aug 10, 2021
1 parent b97bf1f commit 7c131c7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/gpg/docker-test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

Set-Variable -Name "GPG_SECRET_KEYS" -Value ""

Write-Output ""
Write-Output ""
Write-Output "Test Ubuntu"
Write-Output ""
Write-Output ""

docker run -it --rm -v ${PWD}:/build/source -v ${HOME}/.m2:/build/.m2 -e GPG_SECRET_KEYS=${GPG_SECRET_KEYS} -e GPG_OWNERTRUST -e GPG_PASSPHRASE -e GPG_PUBID -e GPG_PUBID_KEYGRIP --net=host ubuntu /bin/bash --login -c "apt-get update && apt-get install -y gpg && bash /build/source/setup-gpg.sh"

Write-Output ""
Write-Output ""
Write-Output "Test Centos"
Write-Output ""
Write-Output ""

docker run -it --rm -v ${PWD}:/build/source -v ${HOME}/.m2:/build/.m2 -e GPG_PRESET_EXECUTABLE=/usr/libexec/gpg-preset-passphrase -e GPG_SECRET_KEYS=${GPG_SECRET_KEYS} -e GPG_OWNERTRUST -e GPG_PASSPHRASE -e GPG_PUBID -e GPG_PUBID_KEYGRIP --net=host aemdesign/centos-java-buildpack:jdk8 /bin/bash --login -c "bash /build/source/setup-gpg.sh"

0 comments on commit 7c131c7

Please sign in to comment.