fix workflow file #7

Merged
Fascinated merged 2 commits from development into master 2023-07-08 00:36:08 +00:00
Showing only changes of commit 49727e46c9 - Show all commits

View File

@ -53,17 +53,23 @@ jobs:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx
- name: Build and Push
- name: Build and Push (Latest)
uses: docker/build-push-action@v4
if: steps.branch-name.outputs.current_branch == 'master'
with:
push: true
context: .
tags: |
{{ if eq(steps.branch-name.outputs.current_branch, 'master') }}
fascinated/sharex-php-uploader:latest
{{ else }}
fascinated/sharex-php-uploader:${{ steps.branch-name.outputs.current_branch }}
{{ endif }}
tags: fascinated/sharex-php-uploader:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Build and Push (Other Branches)
uses: docker/build-push-action@v4
if: steps.branch-name.outputs.current_branch != 'master'
with:
push: true
context: .
tags: fascinated/sharex-php-uploader:${{ steps.branch-name.outputs.current_branch }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache