circleci-public / azure-acr-orb Goto Github PK
View Code? Open in Web Editor NEWCircleCI orb for interacting with Microsoft's Azure Container Registry (ACR)
Home Page: https://circleci.com/orbs/registry/orb/circleci/azure-acr
License: MIT License
CircleCI orb for interacting with Microsoft's Azure Container Registry (ACR)
Home Page: https://circleci.com/orbs/registry/orb/circleci/azure-acr
License: MIT License
0.2.0
CircleCI have deprecated use of older Ubuntu executors, including ubuntu-1604:201903-01
which is presently set as the default executor for this orb. Below image shows the message that appears in any CircleCI pipeline that makes use of azure-acr-orb
:
Migrate to a newer Ubuntu executor as per the above CircleCI notice, so that come late-May, the orb can continue to be used.
0.1.2
My build https://circleci.com/gh/safecube/iot-container-tracker/2075 failed when installing Azure CLI. This has happened multiple times but not systematically.
Here is the log output:
Install Azure CLI, if not available
#!/bin/bash -eo pipefail
# Verify the CLI isn't already installed
# Use which instead of command -v for wider coverage of envs
if which az > /dev/null; then
echo "Azure CLI installed already."
exit 0
fi
# Set sudo to work whether logged in as root user or non-root user
if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi
$SUDO apt-get update && $SUDO apt-get -qqy install apt-transport-https
if [[ $(command -v lsb_release) == "" ]]; then
echo "Installing lsb_release"
$SUDO apt-get -qqy install lsb-release
fi
# Create an environment variable for the correct distribution
export AZ_REPO=$(lsb_release -cs)
# Modify your sources list
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
$SUDO tee /etc/apt/sources.list.d/azure-cli.list
if [[ $(command -v curl) == "" ]]; then
echo "Installing curl"
$SUDO apt-get -qqy install curl
fi
# Get the Microsoft signing key
curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -
# Update and install the Azure CLI
$SUDO apt-get update
$SUDO apt-get -qqy install \
ca-certificates \
azure-cli
echo "Azure CLI is now installed."
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 983 100 983 0 0 4171 0 --:--:-- --:--:-- --:--:-- 4182
OK
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Exited with code 100
The build should successfully install Azure CLI.
0.2.0
We are using the performance plan and we would like to use the docker_layer_cache. After several attempts it was no possible to turn it to true. An addition to the example explaining on how to setup could be very valuable.
Also explained here https://discuss.circleci.com/t/azure-acr-and-docker-layer-cache/39537
0.2.1
Suddenly today the Install Azure CLI, if not available
step stop working, see attached logs:
#!/bin/bash -eo pipefail
# Verify the CLI isn't already installed
# Use which instead of command -v for wider coverage of envs
if which az > /dev/null; then
echo "Azure CLI installed already."
exit 0
fi
# Set sudo to work whether logged in as root user or non-root user
if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi
$SUDO apt-get update && $SUDO apt-get -qqy install apt-transport-https
if [[ $(command -v lsb_release) == "" ]]; then
echo "Installing lsb_release"
$SUDO apt-get -qqy install lsb-release
fi
# Create an environment variable for the correct distribution
export AZ_REPO=$(lsb_release -cs)
# Modify your sources list
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
$SUDO tee /etc/apt/sources.list.d/azure-cli.list
if [[ $(command -v curl) == "" ]]; then
echo "Installing curl"
$SUDO apt-get -qqy install curl
fi
# Get the Microsoft signing key
curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -
# Update and install the Azure CLI
$SUDO apt-get update
$SUDO apt-get -qqy install \
ca-certificates \
azure-cli
echo "Azure CLI is now installed."
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 https://download.docker.com/linux/ubuntu jammy InRelease [48.9 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:7 https://cli-assets.heroku.com/apt ./ InRelease [2,564 B]
Get:8 https://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [714 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [161 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [10.8 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [440 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [67.5 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [584 B]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [748 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [123 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [4,404 B]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [7,260 B]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [2,360 B]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [420 B]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3,008 B]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [1,432 B]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [272 B]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [6,744 B]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [9,360 B]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [352 B]
Get:27 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages [9,481 B]
Get:28 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease [23.8 kB]
Get:29 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,123 B]
Get:30 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,223 kB]
Get:31 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [465 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [389 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.0 kB]
Get:34 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [103 kB]
Get:35 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [3,924 B]
Get:36 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [376 kB]
Get:37 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [57.6 kB]
Get:38 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [524 B]
Get:39 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [609 kB]
Hit:40 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu jammy InRelease
Get:41 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [78.2 kB]
Get:42 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [2,408 B]
Get:43 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4,192 B]
Get:44 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [228 B]
Get:45 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy/main amd64 Packages [4,048 B]
Reading package lists... Done
W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://cli-assets.heroku.com/apt/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Repository 'https://cli-assets.heroku.com/apt ./ InRelease' changed its 'Origin' value from 'Heroku' to 'Jeff Dickey @jdxcode'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ jammy main
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
100 983 100 983 0 0 11420 0 --:--:-- --:--:-- --:--:-- 11430
OK
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:8 https://packages.microsoft.com/repos/azure-cli jammy InRelease [10.4 kB]
Get:7 https://cli-assets.heroku.com/apt ./ InRelease [2,564 B]
Hit:9 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:10 https://ppa.launchpadcontent.net/git-core/ppa/ubuntu jammy InRelease
Get:11 https://packages.microsoft.com/repos/azure-cli jammy/main amd64 Packages [1,839 B]
Hit:12 https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu jammy InRelease
Reading package lists... Done
W: https://download.docker.com/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://packages.microsoft.com/repos/azure-cli/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://cli-assets.heroku.com/apt/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Repository 'https://cli-assets.heroku.com/apt ./ InRelease' changed its 'Origin' value from 'Heroku' to 'Jeff Dickey @jdxcode'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Exited with code exit status 100
CircleCI received exit code 100
It should work as normally
0.2.0
The orb start breaking on install azure cli step
#!/bin/bash -eo pipefail
# Verify the CLI isn't already installed
# Use which instead of command -v for wider coverage of envs
if which az > /dev/null; then
echo "Azure CLI installed already."
exit 0
fi
# Set sudo to work whether logged in as root user or non-root user
if [[ $EUID == 0 ]]; then export SUDO=""; else export SUDO="sudo"; fi
$SUDO apt-get update && $SUDO apt-get -qqy install apt-transport-https
if [[ $(command -v lsb_release) == "" ]]; then
echo "Installing lsb_release"
$SUDO apt-get -qqy install lsb-release
fi
# Create an environment variable for the correct distribution
export AZ_REPO=$(lsb_release -cs)
# Modify your sources list
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
$SUDO tee /etc/apt/sources.list.d/azure-cli.list
if [[ $(command -v curl) == "" ]]; then
echo "Installing curl"
$SUDO apt-get -qqy install curl
fi
# Get the Microsoft signing key
curl -L https://packages.microsoft.com/keys/microsoft.asc | $SUDO apt-key add -
# Update and install the Azure CLI
$SUDO apt-get update
$SUDO apt-get -qqy install \
ca-certificates \
azure-cli
echo "Azure CLI is now installed."
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:2 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:4 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,096 B]
Get:5 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease [23.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:7 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [2,696 B]
Get:8 http://archive.canonical.com/ubuntu xenial/partner Translation-en [1,556 B]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main Sources [252 kB]
Get:10 https://cli-assets.heroku.com/apt ./ InRelease [2,879 B]
Get:11 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,976 B]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [211 kB]
Get:14 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease [23.8 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [4,636 B]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1,648 kB]
Err:10 https://cli-assets.heroku.com/apt ./ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
Get:17 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [380 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [9,824 B]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [785 kB]
Get:20 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [21.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:22 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [225 kB]
Get:23 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [7,864 B]
Get:24 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial/main amd64 Packages [3,336 B]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [2,672 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:27 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main amd64 Packages [16.4 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:29 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial/main Translation-en [2,700 B]
Get:30 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:31 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2,908 B]
Get:37 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [537 kB]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3,608 B]
Get:43 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [444 kB]
Get:44 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [12.3 kB]
Get:45 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [2,049 kB]
Get:46 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [482 kB]
Get:47 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [10.2 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [1,219 kB]
Get:50 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [358 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [22.6 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,476 B]
Get:53 http://archive.ubuntu.com/ubuntu xenial-backports/main Sources [6,720 B]
Get:54 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [11.0 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [9,812 B]
Get:56 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]
Get:57 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [11.3 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,476 B]
Fetched 32.2 MB in 6s (5,210 kB/s)
Reading package lists... Done
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Some index files failed to download. They have been ignored, or old ones used instead.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
(Reading database ... 136910 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.2.35_amd64.deb ...
Unpacking apt-transport-https (1.2.35) over (1.2.31) ...
Setting up apt-transport-https (1.2.35) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 983 100 983 0 0 407 0 0:00:02 0:00:02 --:--:-- 407
OK
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Hit:4 http://archive.canonical.com/ubuntu xenial InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:6 https://cli-assets.heroku.com/apt ./ InRelease [2,879 B]
Hit:7 https://download.docker.com/linux/ubuntu xenial InRelease
Hit:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:9 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease
Hit:10 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Err:6 https://cli-assets.heroku.com/apt ./ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
Get:11 https://packages.microsoft.com/repos/azure-cli xenial InRelease [3,965 B]
Get:12 https://packages.microsoft.com/repos/azure-cli xenial/main amd64 Packages [15.5 kB]
Fetched 24.1 kB in 3s (6,509 B/s)
Reading package lists... Done
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
W: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://cli-assets.heroku.com/apt ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Failed to fetch https://cli-assets.heroku.com/apt/./InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6DB5542C356545CF
W: Some index files failed to download. They have been ignored, or old ones used instead.
Too long with no output (exceeded 10m0s): context deadline exceeded
Installs CLI correctly and moves one
v0.2.0
there is combined build_and_push job, so push goes immediately after build
steps "build" and "push" separated, so i can run some extra tests before i push image to registry.
0.1.3
The latest version of the azure-cli introduced the following change:
az acr login: Throw a CLIError if there are errors returned by docker command
This breaks the step Log into ACR with the following output:
#!/bin/bash -eo pipefail
az acr login --name $AZURE_REGISTRY_NAME_STAGING
Login Succeeded
docker: WARNING! Your password will be stored unencrypted in /home/circleci/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Exited with code exit status 1
The docker login command should exit successfully
0.1.3
The orb commands don't support multiple tags. For example, to use the azure-acr/build-and-push-image
command to create an image with 3 tags, you need to use three different steps.
It should be possible to build and push an image with multiple tags with one command.
The docker orb used by this ACR orb has since been updated to support multiple tags (see CircleCI-Public/docker-orb#36), so this should be a case of simply bumping the version of the docker orb.
I've raised a PR to do this: #8
Migrate to Orb Tools v11.1
https://github.com/CircleCI-Public/orb-tools-orb/blob/master/MIGRATION.md
0.1.1
The documentation of the "path" parameter of the job states "Path to the directory containing your Dockerfile and build context. Defaults to . (working directory)."
I would therefore expect that this parameter be used to find the Dockerfile.
The build_image job looks for the dockerfile at {{ path }}/Dockerfile
(unless the dockerfile
parameter is specified)
The build_image job looks for the dockerfile at ./Dockerfile, ignoring the path. The build fails because the Dockerfile is not found.
Example build: https://circleci.com/gh/safecube/iot-container-tracker/26
In the failing step, I expected the Dockerfile to be looked for under $HOME/project/server
(the value of the path parameter).
The issue seems to be at this line: https://github.com/CircleCI-Public/azure-acr-orb/blob/master/src/commands/build-image.yml#L44
The parameter <<parameters.path>>
should be used before <<parameters.dockerfile>>
.
Either that or the documentation for the parameter path, which is currently misleading, should specify that path
is not used to look for the Dockerfile.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.