a dumb fix - might work
All checks were successful
Publish Docker Image / docker (push) Successful in 25s

This commit is contained in:
Lee 2023-07-08 01:35:23 +01:00
parent b141ce2045
commit 49727e46c9

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