-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
127 changed files
with
8,867 additions
and
0 deletions.
There are no files selected for viewing
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,20 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: 'README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
exit 0 | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
48 changes: 48 additions & 0 deletions
48
.github/workflows/acr_create-acrpull-service-principal_README_md.yml
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,48 @@ | ||
on: | ||
schedule: | ||
- cron: '0 18 * * 5' | ||
workflow_dispatch: | ||
|
||
name: 'acr/create-acrpull-service-principal/README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $RESOURCE_GROUP ]]; then | ||
export RESOURCE_GROUP=joazrg-$RANDOM | ||
echo "Using '"$RESOURCE_GROUP"' as resource group" | ||
fi | ||
az group create --name $RESOURCE_GROUP --location $REGION | ||
if [[ -z $ACR_NAME ]]; then | ||
export ACR_NAME=joazcr$RANDOM | ||
fi | ||
az acr create \ | ||
--name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP \ | ||
--sku Basic \ | ||
--admin-enabled true | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
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,64 @@ | ||
on: | ||
schedule: | ||
- cron: '0 17 * * 5' | ||
workflow_dispatch: | ||
|
||
name: 'acr/create-settings-xml/README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $RESOURCE_GROUP ]]; then | ||
export RESOURCE_GROUP=joazrg-$RANDOM | ||
echo "Using '"$RESOURCE_GROUP"' as resource group" | ||
fi | ||
az group create --name $RESOURCE_GROUP --location $REGION | ||
if [[ -z $ACR_NAME ]]; then | ||
export ACR_NAME=joazcr$RANDOM | ||
fi | ||
az acr create \ | ||
--name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP \ | ||
--sku Basic \ | ||
--admin-enabled true | ||
cd acr/create-settings-xml | ||
export ACR_USERNAME=`az acr credential show --name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP --query username --output tsv` | ||
export ACR_PASSWORD=`az acr credential show --name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP --query 'passwords[0].value' --output tsv` | ||
export SETTINGS_XML=$PWD/settings.xml | ||
cd ../.. | ||
az group delete --name $RESOURCE_GROUP --yes || true | ||
if [[ -z $ACR_USERNAME ]]; then | ||
echo "ACR Admin username was not found" | ||
exit 1 | ||
fi | ||
if [[ -z $ACR_PASSWORD ]]; then | ||
echo "ACR Admin passsword was not found" | ||
exit 1 | ||
fi | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
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,62 @@ | ||
on: | ||
schedule: | ||
- cron: '0 14 * * 5' | ||
workflow_dispatch: | ||
|
||
name: 'acr/graalvm/README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $RESOURCE_GROUP ]]; then | ||
export RESOURCE_GROUP=joazrg-$RANDOM | ||
echo "Using '"$RESOURCE_GROUP"' as resource group" | ||
fi | ||
az group create --name $RESOURCE_GROUP --location $REGION | ||
if [[ -z $ACR_NAME ]]; then | ||
export ACR_NAME=joazcr$RANDOM | ||
fi | ||
az acr create \ | ||
--name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP \ | ||
--sku Basic \ | ||
--admin-enabled true | ||
cd acr/graalvm | ||
mvn package | ||
docker build -t builder -f Dockerfile.builder . | ||
docker run --rm --tty -v $PWD/../..:/mnt builder mvn -P graalvm -pl acr/graalvm clean install | ||
export ACR_GRAALVM_IMAGE=graalvm:latest | ||
az acr build --registry $ACR_NAME --image $ACR_GRAALVM_IMAGE . | ||
cd ../.. | ||
export RESULT=$(az acr repository show --name $ACR_NAME --image $ACR_GRAALVM_IMAGE) | ||
az group delete --name $RESOURCE_GROUP --yes || true | ||
if [[ -z $RESULT ]]; then | ||
echo "Unable to find $ACR_GRAALVM_IMAGE image" | ||
exit 1 | ||
fi | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
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,65 @@ | ||
on: | ||
schedule: | ||
- cron: '0 13 * * 5' | ||
workflow_dispatch: | ||
|
||
name: 'acr/helidon/README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $RESOURCE_GROUP ]]; then | ||
export RESOURCE_GROUP=joazrg-$RANDOM | ||
echo "Using '"$RESOURCE_GROUP"' as resource group" | ||
fi | ||
az group create --name $RESOURCE_GROUP --location $REGION | ||
if [[ -z $ACR_NAME ]]; then | ||
export ACR_NAME=joazcr$RANDOM | ||
fi | ||
az acr create \ | ||
--name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP \ | ||
--sku Basic \ | ||
--admin-enabled true | ||
cd acr/helidon | ||
mvn package | ||
export ACR_HELIDON_IMAGE=helidon:latest | ||
az acr build --registry $ACR_NAME --resource-group $RESOURCE_GROUP --image $ACR_HELIDON_IMAGE . | ||
cd ../.. | ||
export RESULT=$(az acr repository show --name $ACR_NAME --image $ACR_HELIDON_IMAGE) | ||
az group delete --name $RESOURCE_GROUP --yes || true | ||
if [[ -z $RESULT ]]; then | ||
echo "Unable to find $ACR_HELIDON_IMAGE image" | ||
exit 1 | ||
fi | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
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,64 @@ | ||
on: | ||
schedule: | ||
- cron: '0 12 * * 5' | ||
workflow_dispatch: | ||
|
||
name: 'acr/helloworldjob/README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'actions/setup-java@v4' | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $REGION ]]; then | ||
export REGION=westus | ||
fi | ||
if [[ -z $RESOURCE_GROUP ]]; then | ||
export RESOURCE_GROUP=joazrg-$RANDOM | ||
echo "Using '"$RESOURCE_GROUP"' as resource group" | ||
fi | ||
az group create --name $RESOURCE_GROUP --location $REGION | ||
if [[ -z $ACR_NAME ]]; then | ||
export ACR_NAME=joazcr$RANDOM | ||
fi | ||
az acr create \ | ||
--name $ACR_NAME \ | ||
--resource-group $RESOURCE_GROUP \ | ||
--sku Basic \ | ||
--admin-enabled true | ||
cd acr/helloworldjob | ||
mvn -ntp package | ||
export ACR_HELLOWORLDJOB_IMAGE=helloworldjob:latest | ||
az acr build --registry $ACR_NAME --resource-group $RESOURCE_GROUP --image $ACR_HELLOWORLDJOB_IMAGE . | ||
cd ../.. | ||
export RESULT=$(az acr repository show --name $ACR_NAME --image $ACR_HELLOWORLDJOB_IMAGE) | ||
az group delete --name $RESOURCE_GROUP --yes || true | ||
if [[ -z $RESULT ]]; then | ||
echo "Unable to find " $ACR_HELLOWORLDJOB_IMAGE " image" | ||
exit 1 | ||
fi | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
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,20 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
name: 'afd/README.md' | ||
jobs: | ||
validate: | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: 'azure/login@v1' | ||
with: | ||
subscription-id: '${{ secrets.AZURE_SUBSCRIPTION_ID }}' | ||
client-id: '${{ secrets.AZURE_CLIENT_ID }}' | ||
tenant-id: '${{ secrets.AZURE_TENANT_ID }}' | ||
- uses: 'actions/checkout@v3' | ||
- run: | | ||
exit 0 | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' |
Oops, something went wrong.