Merge pull request 'fix workflow file' (#7) from development into master
All checks were successful
Publish Docker Image / docker (push) Successful in 24s
All checks were successful
Publish Docker Image / docker (push) Successful in 24s
Reviewed-on: #7
This commit is contained in:
commit
b9cbfef9be
@ -53,8 +53,19 @@ 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:
|
||||||
|
push: true
|
||||||
|
context: .
|
||||||
|
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:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: .
|
context: .
|
||||||
|
Loading…
Reference in New Issue
Block a user