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