Skip to content

Commit

Permalink
use mcr.microsoft.com/azure-cli as base image
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
  • Loading branch information
bacongobbler committed Nov 10, 2022
1 parent ec64da8 commit 50f7d89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.10
FROM mcr.microsoft.com/azure-cli

LABEL "com.github.actions.name"="azure-blob-storage-upload"
LABEL "com.github.actions.description"="Uploads assets to Azure Blob Storage"
LABEL "com.github.actions.icon"="box"
LABEL "com.github.actions.color"="green"
LABEL "repository"="https://github.com/bacongobbler/azure-blob-storage-upload"
LABEL "homepage"="https://github.com/bacongobbler/azure-blob-storage-upload"
LABEL "maintainer"="Matthew Fisher <matt.fisher@microsoft.com>"
LABEL "maintainer"="Matthew Fisher <matt.fisher@fishworks.io>"

ADD entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
Expand Down
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ branding:
icon: "box"
color: "green"
inputs:
cli_version:
description: "If set, specifies the version of the Azure CLI to install. Defaults to latest"
required: false
connection_string:
description: "The connection string for the storage account. Used if value is set. Either connection_string or sas_token must be supplied"
required: false
Expand Down
3 changes: 0 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,4 @@ if [[ -n ${INPUT_CLI_VERSION} ]]; then
CLI_VERSION="==${INPUT_CLI_VERSION}"
fi

# install the azure cli
pip install azure-cli${CLI_VERSION}

az storage blob ${VERB} ${CONNECTION_METHOD} --source ${INPUT_SOURCE_DIR} ${CONTAINER_NAME_FLAG} ${INPUT_CONTAINER_NAME} ${ARG_OVERWRITE} ${EXTRA_ARGS}

0 comments on commit 50f7d89

Please sign in to comment.