Updating build workflow #6
@ -35,14 +35,13 @@ jobs:
|
|||||||
username: ${{ secrets.REPO_USERNAME }}
|
username: ${{ secrets.REPO_USERNAME }}
|
||||||
password: ${{ secrets.REPO_TOKEN }}
|
password: ${{ secrets.REPO_TOKEN }}
|
||||||
|
|
||||||
- name: Cache Docker Build Steps
|
- name: Restore Docker Build Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
id: docker-build-cache
|
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
key: ${{ runner.os }}-docker-build-${{ hashFiles('**/Dockerfile') }}
|
key: ${{ runner.os }}-buildx
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-docker-build-
|
${{ runner.os }}-buildx
|
||||||
|
|
||||||
- name: Build and Push
|
- name: Build and Push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
@ -50,3 +49,11 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
context: .
|
context: .
|
||||||
tags: fascinated/sharex-php-uploader:latest
|
tags: fascinated/sharex-php-uploader:latest
|
||||||
|
|
||||||
|
- name: Save Docker Build Cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx
|
||||||
|
Loading…
Reference in New Issue
Block a user