runner-images/build.sh
Tanguy Herbron 35521602c6
All checks were successful
Image builder / build (push) Successful in 14s
pipeline runner
2023-08-07 10:49:37 +02:00

9 lines
321 B
Bash
Executable File

#!/bin/sh
echo $CONTAINER_TOKEN | docker login git.halis.io -u $GITHUB_ACTOR --password-stdin
IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)
docker pull ubuntu:latest
docker tag ubuntu:latest $IMAGE_NAME:shell-auto-build
docker push $IMAGE_NAME:shell-auto-build