runner-images/build.sh

9 lines
321 B
Bash
Raw Normal View History

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