-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use docker/build-push-action with maximum cachinng
- Loading branch information
1 parent
88be5d8
commit ae7e3e9
Showing
2 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,36 +24,67 @@ jobs: | |
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker caching | ||
uses: jpribyl/[email protected] | ||
continue-on-error: true | ||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build lottie-to-apng | ||
run: docker build -t lottie-to-apng:${{ inputs.arch }} --target lottie-to-apng --platform ${{ inputs.arch }} . | ||
|
||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
tags: lottie-to-apng:${{ inputs.arch }} | ||
platforms: ${{ inputs.arch }} | ||
target: lottie-to-apng | ||
load: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Upload lottie-to-apng as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-apng:${{ inputs.arch }} | ||
|
||
- name: Build lottie-to-gif | ||
run: docker build -t lottie-to-gif:${{ inputs.arch }} --target lottie-to-gif --platform ${{ inputs.arch }} . | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
tags: lottie-to-gif:${{ inputs.arch }} | ||
platforms: ${{ inputs.arch }} | ||
target: lottie-to-gif | ||
load: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Upload lottie-to-gif as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-gif:${{ inputs.arch }} | ||
|
||
- name: Build lottie-to-png | ||
run: docker build -t lottie-to-png:${{ inputs.arch }} --target lottie-to-png --platform ${{ inputs.arch }} . | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
tags: lottie-to-png:${{ inputs.arch }} | ||
platforms: ${{ inputs.arch }} | ||
target: lottie-to-png | ||
load: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Upload lottie-to-png as artifact | ||
uses: ishworkh/[email protected] | ||
with: | ||
image: lottie-to-png:${{ inputs.arch }} | ||
|
||
- name: Build lottie-to-webp | ||
run: docker build -t lottie-to-webp:${{ inputs.arch }} --target lottie-to-webp --platform ${{ inputs.arch }} . | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
tags: lottie-to-webp:${{ inputs.arch }} | ||
platforms: ${{ inputs.arch }} | ||
target: lottie-to-webp | ||
load: true | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
- name: Upload lottie-to-webp as artifact | ||
uses: ishworkh/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters