Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Commit 1924d12

Browse files
authored
Update build-and-deploy-master.yml
1 parent 28f17bc commit 1924d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-and-deploy-master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- run: git fetch --prune --unshallow
2727

2828
- name: Hent tag
29-
run: echo "::set-env name=TAG::$(echo $GITHUB_SHA | cut -c1-7)"
29+
run: echo "::set-env name=TAG::$(git log -1 --pretty='%ad' --date=format:'%Y.%m.%d.%H%M%S')-$(echo $GITHUB_SHA | cut -c1-7)"
3030
- name: Sette opp Node
3131
uses: actions/setup-node@v1
3232
with:
@@ -60,7 +60,7 @@ jobs:
6060
## docker pull nginx:1.17.8-alpine
6161
docker build --pull --tag ${IMAGE} --tag ${IMAGE_BASE}:latest .
6262
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com -u ${GITHUB_USERNAME} --password-stdin
63-
## docker push ${IMAGE_BASE}:latest
63+
docker push ${IMAGE_BASE}:latest
6464
docker push $IMAGE
6565
6666
- name: Opprett deployment issue

0 commit comments

Comments
 (0)