Skip to content

Commit 5ac887b

Browse files
committed
mhh
1 parent 849a496 commit 5ac887b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ on:
66
env:
77
REGISTRY: ghcr.io
88
IMAGE_NAME: ${{ github.repository }}
9+
TAG_NAME: ${{ env.REGISTRY }}/fys-help-bot:$(date +%s)
910

1011
jobs:
1112
build:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v2
15-
- name: Build the Docker image
16-
run: docker build . --file Dockerfile --tag fys-help-bot:$(date +%s)
1716
# push to githubs docker registry
1817
- name: Log in to the Container registry
1918
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
@@ -25,5 +24,5 @@ jobs:
2524
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
2625
with:
2726
push: true
28-
tags: ${{ env.REGISTRY }}/fys-help-bot:${{ $(date +%s) }}
27+
tags: ${{ env.TAG_NAME }}
2928
file: ./Dockerfile

0 commit comments

Comments
 (0)