Skip to content

Commit 33e2f42

Browse files
committed
mmh
1 parent 6edd5d3 commit 33e2f42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

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

1110
jobs:
1211
build:
@@ -20,9 +19,11 @@ jobs:
2019
registry: ${{ env.REGISTRY }}
2120
username: ${{ github.actor }}
2221
password: ${{ secrets.GITHUB_TOKEN }}
22+
- run: echo "NAME=${{ env.REGISTRY }}/fys-help-bot:$(date +%s)" >> $GITHUB_OUTPUT
23+
id: tag
2324
- name: Push the Docker image
2425
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
2526
with:
2627
push: true
27-
tags: ${{ env.TAG_NAME }}
28+
tags: ${{ steps.tag.outputs.NAME }}
2829
file: ./Dockerfile

0 commit comments

Comments
 (0)