add tea
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
This commit is contained in:
parent
e929caaed0
commit
64af116175
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
docker build --progress plain --iidfile iid.txt .
|
docker build --progress plain --iidfile iid.txt .
|
||||||
stringprefix() { [ ${#1} -le $2 ] && echo $1 && return 0 || stringprefix "${1%?}" $2 ; }
|
stringprefix() { [ ${#1} -le $2 ] && echo $1 && return 0 || stringprefix "${1%?}" $2 ; }
|
||||||
SHORTSHA="$(stringprefix "$GITHUB_SHA" 8)"
|
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 tag "`cat iid.txt`" "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
|
||||||
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
|
docker push "$DOCKER_REGISTRY/$GITHUB_REPOSITORY:$TAG"
|
||||||
done
|
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