update build and push

This commit is contained in:
Ying Zhao 2025-05-18 14:22:24 -04:00
parent 3b9d671e7f
commit 9cb4f050b3

View file

@ -47,16 +47,16 @@ jobs:
# with: # with:
# images: jingle3276/metube # images: jingle3276/metube
- name: Build and push Docker image # - name: Build and push Docker image
id: push # id: push
uses: docker/build-push-action@v5 # uses: docker/build-push-action@v5
with: # with:
context: . # context: .
file: ./Dockerfile # file: ./Dockerfile
push: true # push: true
tags: | # tags: |
${{ secrets.DOCKERHUB_REPOSITORY }}:latest # ${{ secrets.DOCKERHUB_REPOSITORY }}:latest
${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.date.outputs.date }} # ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ steps.date.outputs.date }}
- -
name: Build and push name: Build and push
@ -69,6 +69,7 @@ jobs:
jingle3276/metube:latest jingle3276/metube:latest
jingle3276/metube:${{ steps.date.outputs.date }} jingle3276/metube:${{ steps.date.outputs.date }}
# dockerhub-sync-readme: # dockerhub-sync-readme:
# needs: dockerhub-build-push # needs: dockerhub-build-push
# runs-on: ubuntu-latest # runs-on: ubuntu-latest