repos / pico

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

commit
1ce0105
parent
508d0cb
author
Antonio Mika
date
2022-12-12 00:10:06 +0000 UTC
Return caddy build to separate job
1 files changed,  +26, -5
M .github/workflows/build.yml
+26, -5
 1@@ -80,16 +80,37 @@ jobs:
 2         platform: ${{ env.PLATFORM }}
 3         build-args: |
 4           APP=${{ matrix.app }}
 5-    - name: Collect Caddy image metadata
 6-      id: metacaddy
 7+  build-caddy:
 8+    runs-on: ubuntu-22.04
 9+    needs: test
10+    steps:
11+    - name: Checkout repo
12+      uses: actions/checkout@v3
13+    - name: Set up QEMU
14+      uses: docker/setup-qemu-action@v2
15+      with:
16+        platforms: all
17+    - name: Set up Docker Buildx
18+      id: buildx
19+      uses: docker/setup-buildx-action@v2
20+      with:
21+        version: latest
22+    - name: Login to Docker Hub
23+      uses: docker/login-action@v2
24+      with:
25+        registry: ${{ env.REGISTRY }}
26+        username: ${{ github.actor }}
27+        password: ${{ secrets.GITHUB_TOKEN }}
28+    - name: Collect image metadata
29+      id: meta
30       uses: docker/metadata-action@v4
31       with:
32         images: ${{ env.REGISTRY }}/${{ github.repository }}/caddy
33-    - name: Build and push Caddy
34+    - name: Build and push
35       uses: docker/build-push-action@v3
36       with:
37         context: ./caddy
38         push: true
39-        tags: ${{ steps.metacaddy.outputs.tags }}
40-        labels: ${{ steps.metacaddy.outputs.labels }}
41+        tags: ${{ steps.meta.outputs.tags }}
42+        labels: ${{ steps.meta.outputs.labels }}
43         platform: ${{ env.PLATFORM }}