Skip to content
Permalink
Browse files
Perform a docker login before starting the actions runner script (#27)
This was done in the cloud-init, but missed from the migration to packer
build scripts.
  • Loading branch information
ashb committed May 10, 2021
1 parent b92388f commit 82bd9269d01705bed4044215d2be52b57b5227f8
Showing 1 changed file with 6 additions and 0 deletions.
@@ -16,10 +16,16 @@
# specific language governing permissions and limitations
# under the License.

set -eu -o pipefail
echo "Left-over containers:"
docker ps -a
docker ps -qa | xargs --verbose --no-run-if-empty docker rm -fv

echo "Log in to a paid docker user to get unlimited docker pulls"
aws ssm get-parameter --with-decryption --name /runners/apache/airflow/dockerPassword | \
jq .Parameter.Value -r | \
sudo -u runner docker login --username airflowcirunners --password-stdin

if [[ -d ~runner/actions-runner/_work/airflow/airflow ]]; then
cd ~runner/actions-runner/_work/airflow/airflow

0 comments on commit 82bd926

Please sign in to comment.