mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
fix github workflows with datetime
This commit is contained in:
parent
5cc376f22f
commit
086e7f9392
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -28,6 +28,10 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Set datetime variable
|
||||||
|
id: vars
|
||||||
|
run: echo "DATETIME=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
@ -35,7 +39,7 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
dalbodeule/chzzkbot:latest
|
dalbodeule/chzzkbot:latest
|
||||||
dalbodeule/chzzkbot:$(git rev-parse --short HEAD)
|
dalbodeule/chzzkbot:${{ env.DATETIME }}
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm64
|
linux/arm64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user