Build on all tags&branches
Some checks are pending
Build and Push Images / docker (map[name:legacy use_iptables_legacy:true]) (push) Waiting to run
Build and Push Images / docker (map[name:nf_tables use_iptables_legacy:false]) (push) Waiting to run
Unit Testing ufw-docker / Unit Testing (push) Waiting to run

This commit is contained in:
Chai Feng 2025-07-09 23:15:20 +08:00
parent 8235abcedc
commit 56371e7db3
No known key found for this signature in database
GPG key ID: 2DCD9A24E523FFD2

View file

@ -2,10 +2,6 @@ name: Build and Push Images
on: on:
push: push:
tags:
- '*'
branches:
- 'master'
jobs: jobs:
docker: docker:
@ -18,6 +14,7 @@ jobs:
use_iptables_legacy: "false" use_iptables_legacy: "false"
- name: legacy - name: legacy
use_iptables_legacy: "true" use_iptables_legacy: "true"
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -40,7 +37,7 @@ jobs:
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: chaifeng/ufw-docker-agent images: ${{ github.actor }}/ufw-docker-agent
tags: | tags: |
type=ref,event=tag,suffix=-${{ matrix.variant.name }} type=ref,event=tag,suffix=-${{ matrix.variant.name }}
type=ref,event=branch,suffix=-${{ matrix.variant.name }} type=ref,event=branch,suffix=-${{ matrix.variant.name }}
@ -55,5 +52,3 @@ jobs:
use_iptables_legacy=${{ matrix.variant.use_iptables_legacy }} use_iptables_legacy=${{ matrix.variant.use_iptables_legacy }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max