Update Test WF
This commit is contained in:
@@ -11,6 +11,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
variant:
|
||||||
|
- name: 'cloudflare'
|
||||||
|
dockerfile: 'caddy-cloudflare/Dockerfile'
|
||||||
|
context: 'caddy-cloudflare'
|
||||||
|
- name: 'crowdsec'
|
||||||
|
dockerfile: 'caddy-crowdsec/Dockerfile'
|
||||||
|
context: 'caddy-crowdsec'
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout code
|
name: Checkout code
|
||||||
@@ -44,7 +55,8 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5.10.0
|
uses: docker/metadata-action@v5.10.0
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
ryuupendragon/caddy
|
ghcr.io/${{ vars.GH_USERNAME }}/caddy-${{ matrix.variant.name }}
|
||||||
|
${{ vars.DOCKERHUB_USERNAME }}/caddy-${{ matrix.variant.name }}
|
||||||
tags: |
|
tags: |
|
||||||
type=sha,format=long,prefix=sha-
|
type=sha,format=long,prefix=sha-
|
||||||
type=raw,value=latest
|
type=raw,value=latest
|
||||||
@@ -53,10 +65,10 @@ jobs:
|
|||||||
type=raw,value=${{ steps.version.outputs.version }},priority=1000
|
type=raw,value=${{ steps.version.outputs.version }},priority=1000
|
||||||
-
|
-
|
||||||
name: Build Test
|
name: Build Test
|
||||||
uses: docker/build-push-action@v6.18.0
|
uses: docker/build-push-action@v6.19.2
|
||||||
with:
|
with:
|
||||||
context: caddy-cloudflare
|
context: ${{ matrix.variant.context }}
|
||||||
file: caddy-cloudflare/Dockerfile
|
file: ${{ matrix.variant.dockerfile }}
|
||||||
push: false
|
push: false
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user