Removed git fetch + rootless Docker image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
9
docker-compose.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
drone-better-docker-autotag:
|
||||
build:
|
||||
context: "."
|
||||
dockerfile: "Dockerfile"
|
||||
volumes:
|
||||
- ./test-repo/:/drone/src
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user