add tea
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
parent
e929caaed0
commit
1d771ee6ef
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -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
|
||||
|
|
13
Dockerfile
13
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user