update build and push
This commit is contained in:
parent
3b9d671e7f
commit
9cb4f050b3
1 changed files with 11 additions and 10 deletions
21
.github/workflows/main.yml
vendored
21
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue