Add Telemetry for GitHub Action (#43)
This commit is contained in:
Родитель
93d2372236
Коммит
c71c74d027
|
@ -8,6 +8,8 @@ LABEL com.github.actions.description="Creates a service and a deployment with th
|
|||
LABEL com.github.actions.icon="triange"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Deploy a container image to an AKS cluster"
|
||||
|
||||
RUN apk update \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
if [ -n "$KUBE_CONFIG_DATA" ]; then
|
||||
echo "$KUBE_CONFIG_DATA" > kubeconfig
|
||||
|
|
|
@ -8,6 +8,8 @@ LABEL com.github.actions.description="GitHub Action to deploy ARM template to Az
|
|||
LABEL com.github.actions.icon="triange"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Manage Azure Resources"
|
||||
|
||||
RUN apk update \
|
||||
&& apk add --no-cache util-linux
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
if [[ -z "$AZURE_RESOURCE_GROUP" ]]
|
||||
then
|
||||
|
|
|
@ -8,6 +8,8 @@ LABEL com.github.actions.description="GitHub Action to interact with Azure using
|
|||
LABEL com.github.actions.icon="triange"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Azure CLI"
|
||||
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
if [ -n "$AZURE_SCRIPT_PATH" ]
|
||||
then
|
||||
|
|
|
@ -7,6 +7,8 @@ LABEL com.github.actions.description="GitHub Action for Function App container d
|
|||
LABEL com.github.actions.icon="cloud"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Deploy to Azure WebappContainer"
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
AZURE_CR_SUFFIX="azurecr.io"
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ LABEL com.github.actions.description="GitHub Action for deploying Function App o
|
|||
LABEL com.github.actions.icon="cloud"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Deploy to Azure Function App"
|
||||
|
||||
RUN apk update && apk add nodejs=8.9.3-r1 && apk add zip
|
||||
|
||||
COPY . .
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
LINUX_APP_SUBSTRING="linux"
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ LABEL com.github.actions.description="GitHub Action for Azure Web App container
|
|||
LABEL com.github.actions.icon="cloud"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Deploy containers on Azure Function App"
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
AZURE_CR_SUFFIX="azurecr.io"
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ LABEL com.github.actions.description="GitHub Action for deploying Web App on Win
|
|||
LABEL com.github.actions.icon="cloud"
|
||||
LABEL com.github.actions.color="blue"
|
||||
|
||||
ENV GITHUB_ACTION_NAME="Deploy to Azure Web App"
|
||||
|
||||
RUN apk update && apk add nodejs=8.9.3-r1 && apk add zip
|
||||
|
||||
COPY . .
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION}_${GITHUB_REPOSITORY}"
|
||||
export AZURE_HTTP_USER_AGENT="GITHUBACTIONS_${GITHUB_ACTION_NAME}_${GITHUB_REPOSITORY}"
|
||||
|
||||
LINUX_APP_SUBSTRING="linux"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче