repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
6100e85
parent
33923a2
author
Antonio Mika
date
2022-12-12 00:37:51 +0000 UTC
Use proper platforms setting
2 files changed,  +10, -8
M .github/actions/build/action.yml
+4, -2
 1@@ -1,5 +1,7 @@
 2 name: Run a docker build
 3 
 4+description: Runs a docker build in a composite action
 5+
 6 inputs:
 7   app:
 8     description: The pico app to build
 9@@ -36,7 +38,7 @@ runs:
10         tags: ${{ steps.webmeta.outputs.tags }}
11         labels: ${{ steps.webmeta.outputs.labels }}
12         target: release-web
13-        platform: ${{ inputs.platforms }}
14+        platforms: ${{ inputs.platforms }}
15         build-args: |
16           APP=${{ inputs.app }}
17     - name: Build and push ssh
18@@ -47,6 +49,6 @@ runs:
19         tags: ${{ steps.sshmeta.outputs.tags }}
20         labels: ${{ steps.sshmeta.outputs.labels }}
21         target: release-ssh
22-        platform: ${{ inputs.platforms }}
23+        platforms: ${{ inputs.platforms }}
24         build-args: |
25           APP=${{ inputs.app }}
M .github/workflows/build.yml
+6, -6
 1@@ -13,7 +13,7 @@ on:
 2 
 3 env:
 4   REGISTRY: ghcr.io
 5-  PLATFORM: |
 6+  PLATFORMS: |
 7     linux/amd64
 8     linux/arm64
 9 
10@@ -64,25 +64,25 @@ jobs:
11       uses: ./.github/actions/build
12       with:
13         app: lists
14-        platforms: ${{ env.PLATFORM }}
15+        platforms: ${{ env.PLATFORMS }}
16         registry: ${{ env.REGISTRY }}
17     - name: Run docker build for prose
18       uses: ./.github/actions/build
19       with:
20         app: prose
21-        platforms: ${{ env.PLATFORM }}
22+        platforms: ${{ env.PLATFORMS }}
23         registry: ${{ env.REGISTRY }}
24     - name: Run docker build for pastes
25       uses: ./.github/actions/build
26       with:
27         app: pastes
28-        platforms: ${{ env.PLATFORM }}
29+        platforms: ${{ env.PLATFORMS }}
30         registry: ${{ env.REGISTRY }}
31     - name: Run docker build for imgs
32       uses: ./.github/actions/build
33       with:
34         app: imgs
35-        platforms: ${{ env.PLATFORM }}
36+        platforms: ${{ env.PLATFORMS }}
37         registry: ${{ env.REGISTRY }}
38   build-caddy:
39     runs-on: ubuntu-22.04
40@@ -117,4 +117,4 @@ jobs:
41         push: true
42         tags: ${{ steps.meta.outputs.tags }}
43         labels: ${{ steps.meta.outputs.labels }}
44-        platform: ${{ env.PLATFORM }}
45+        platforms: ${{ env.PLATFORMS }}