Skip to content

Commit d280cbf

Browse files
authored
💚 Update workflow to passover Dockerfile args
1 parent 8a6037f commit d280cbf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/main.workflow‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ workflow "Build and Push Docker Container" {
66
}
77

88
action "Test Project" {
9-
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
9+
uses = "actions/npm@master"
1010
args = "ci && npm test"
1111
}
1212

@@ -18,7 +18,7 @@ action "Filters for GitHub Actions" {
1818
action "Build Docker Image" {
1919
uses = "actions/docker/cli@master"
2020
needs = ["Filters for GitHub Actions"]
21-
args = "build -t $CONTAINER_REGISTRY/$GITHUB_REPOSITORY ."
21+
args = "build -t $CONTAINER_REGISTRY/$GITHUB_REPOSITORY . --build-arg VCS_REF=$GITHUB_SHA --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
2222
env = {
2323
CONTAINER_REGISTRY = "registry.gitlab.com"
2424
}

0 commit comments

Comments
 (0)