fix(cd): latest image is not pushed

This commit is contained in:
hexxa 2021-09-14 17:30:00 +08:00 committed by Hexxa
parent 82a52b2312
commit 70dda37c54
2 changed files with 4 additions and 4 deletions

View file

@ -12,17 +12,17 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub with tag
- name: Push to Docker Hub with version tag
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: hexxa/quickshare
tag_with_ref: true
- name: Push to Docker Hub without tag
- name: Push to Docker Hub with latest tag
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: hexxa/quickshare
tag_with_ref: false
tags: latest

View file

@ -1,4 +1,4 @@
name: quickshare-ci
name: ci-quickshare
# Controls when the action will run.
on: