Removed git fetch + rootless Docker image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2023-09-01 00:28:17 +02:00
parent 1c482610f4
commit ed82f61dbb
3 changed files with 14 additions and 4 deletions

View File

@@ -10,4 +10,6 @@ RUN apt update -y && \
COPY ./ ./
RUN bun install --production --frozen-lockfile --no-cache && \
rm -rf ~/.bun
ENTRYPOINT ["bun", "start", "/drone/src"]
USER bun:bun
CMD ["start", "/drone/src"]

9
docker-compose.yml Normal file
View File

@@ -0,0 +1,9 @@
version: "3"
services:
drone-better-docker-autotag:
build:
context: "."
dockerfile: "Dockerfile"
volumes:
- ./test-repo/:/drone/src

View File

@@ -2,7 +2,7 @@ import { Console, Context, Effect, pipe } from "effect"
import simpleGit from "simple-git"
import { parseArgv } from "./argv"
import { parseEnv } from "./env"
import { SimpleGitService, getGitRef, gitFetch } from "./git"
import { SimpleGitService, getGitRef } from "./git"
import { DefaultMatcher, SemVerMatcher, generateDockerTagsFromGitRef } from "./matchers"
import { writeDockerTagsFile } from "./tags"
@@ -19,8 +19,7 @@ const context = Context.empty().pipe(
)
const main = pipe(
gitFetch,
Effect.flatMap(() => getGitRef),
getGitRef,
Effect.flatMap(ref => generateDockerTagsFromGitRef(ref, [
new SemVerMatcher,