Moved the fetch step to the entrypoint
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:
@@ -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