add tea
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 6s

This commit is contained in:
James Andariese 2024-03-28 20:34:31 -05:00
parent e929caaed0
commit 1d771ee6ef
2 changed files with 11 additions and 4 deletions

View File

@ -13,7 +13,7 @@ jobs:
docker build --progress plain --iidfile iid.txt .
stringprefix() { [ ${#1} -le $2 ] && echo $1 && return 0 || stringprefix "${1%?}" $2 ; }
SHORTSHA="$(stringprefix "$GITHUB_SHA" 8)"
for TAG in "$SHORTSHA" "$GITHUB_REF_NAME";do
for TAG in "$SHORTSHA" "$GITHUB_REF_NAME" "$GITHUB_REF_NAME-$(date +%y%m%d%H%M%S)";do
docker tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
done

View File

@ -1,5 +1,12 @@
FROM alpine:3.19.1
FROM gitea/act_runner:nightly-dind-rootless
RUN apk add --no-cache aria2 bash
USER root
ENTRYPOINT ["/bin/bash"]
RUN apk add \
nodejs \
tea \
--no-cache
USER rootless
RUN mkdir $HOME/.docker