-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create CICD workflow using GitHub Actions
- Loading branch information
1 parent
1eb225b
commit ba06f23
Showing
22 changed files
with
788 additions
and
53 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: Publish Asherah artifacts | ||
on: | ||
push: | ||
branches: | ||
# Push events to branches matching refs/heads/release- | ||
- 'release-**' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
- name: Fetch all tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Set up Maven Central Repository | ||
uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- name: Set up C# | ||
uses: actions/setup-dotnet@51f68377c181a79065c61bd492bd49be4575c439 | ||
with: | ||
dotnet-version: '3.1.x' | ||
- name: Install additional dependencies | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libxml2-utils jq | ||
dotnet tool install -g trx2junit | ||
dotnet tool install -g dotnet-setversion | ||
- name: Set up Go 1.15 | ||
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 | ||
with: | ||
go-version: '1.15' | ||
- name: Publish Java SecureMemory | ||
run: | | ||
cd java/secure-memory | ||
BASE_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish Java AppEncrpytion | ||
run: | | ||
cd java/app-encryption | ||
BASE_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish C# Logging | ||
run: | | ||
cd csharp/Logging | ||
BASE_VERSION=$(xmllint --xpath "//Project/PropertyGroup/Version/text()" Directory.Build.props) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
NUGET_KEY: ${{ secrets.NUGET_KEY }} | ||
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish C# SecureMemory | ||
run: | | ||
cd csharp/SecureMemory | ||
BASE_VERSION=$(xmllint --xpath "//Project/PropertyGroup/Version/text()" Directory.Build.props) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
NUGET_KEY: ${{ secrets.NUGET_KEY }} | ||
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish C# AppEncryption | ||
run: | | ||
cd csharp/AppEncryption | ||
BASE_VERSION=$(xmllint --xpath "//Project/PropertyGroup/Version/text()" Directory.Build.props) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
NUGET_KEY: ${{ secrets.NUGET_KEY }} | ||
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish Go SecureMemory | ||
run: | | ||
cd go/securememory | ||
BASE_VERSION=$(cat .versionfile) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish C# AppEncryption | ||
run: | | ||
cd go/appencryption | ||
BASE_VERSION=$(cat .versionfile) | ||
VERSION_SUFFIX=`echo ${BASE_VERSION} | cut -f2 -d'-'` | ||
if [[ "${VERSION_SUFFIX}" != "alpha" ]]; then | ||
./scripts/release_prod.sh | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
export AWS_ACCESS_KEY_ID="dummy_key" | ||
export AWS_SECRET_ACCESS_KEY="dummy_secret" | ||
export AWS_DEFAULT_REGION="us-west-2" | ||
# For DynamoDB client builder | ||
export AWS_REGION="us-west-2" | ||
export DISABLE_TESTCONTAINERS="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.