Skip to content

Commit

Permalink
Committing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
49081 committed Nov 26, 2024
1 parent 4c8341e commit 9f7d032
Show file tree
Hide file tree
Showing 127 changed files with 8,867 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/README_md.yml
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'
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'
64 changes: 64 additions & 0 deletions .github/workflows/acr_create-settings-xml_README_md.yml
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'
62 changes: 62 additions & 0 deletions .github/workflows/acr_graalvm_README_md.yml
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'
65 changes: 65 additions & 0 deletions .github/workflows/acr_helidon_README_md.yml
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'
64 changes: 64 additions & 0 deletions .github/workflows/acr_helloworldjob_README_md.yml
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'
20 changes: 20 additions & 0 deletions .github/workflows/afd_README_md.yml
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'
Loading

0 comments on commit 9f7d032

Please sign in to comment.