mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-02 10:59:18 +01:00
Prepare universal workflow
This commit is contained in:
parent
97d91e0a02
commit
722cd46715
20
.github/workflows/images_build_windows.yml
vendored
20
.github/workflows/images_build_windows.yml
vendored
@ -48,6 +48,14 @@ jobs:
|
|||||||
current_branch: ${{ steps.branch_info.outputs.current_branch }}
|
current_branch: ${{ steps.branch_info.outputs.current_branch }}
|
||||||
sha_short: ${{ steps.branch_info.outputs.sha_short }}
|
sha_short: ${{ steps.branch_info.outputs.sha_short }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Block egress traffic
|
||||||
|
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
|
||||||
|
with:
|
||||||
|
disable-sudo: true
|
||||||
|
egress-policy: block
|
||||||
|
allowed-endpoints: >
|
||||||
|
github.com:443
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -121,11 +129,6 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Block egress traffic
|
|
||||||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
|
|
||||||
with:
|
|
||||||
egress-policy: audit
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -187,7 +190,7 @@ jobs:
|
|||||||
echo "${{ steps.meta.outputs.tags }}"
|
echo "${{ steps.meta.outputs.tags }}"
|
||||||
echo "$Env:TAGS"
|
echo "$Env:TAGS"
|
||||||
|
|
||||||
$tags_array=$( "${{ steps.meta.outputs.tags }}".Split("`r`n") )
|
$tags_array=$( "$Env:TAGS".Split("`n") )
|
||||||
$tags=$( $tags_array | Foreach-Object { "--tag=$_" } )
|
$tags=$( $tags_array | Foreach-Object { "--tag=$_" } )
|
||||||
|
|
||||||
echo "docker build --file=$dockerfile $tags $context"
|
echo "docker build --file=$dockerfile $tags $context"
|
||||||
@ -255,11 +258,6 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Block egress traffic
|
|
||||||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
|
|
||||||
with:
|
|
||||||
egress-policy: audit
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user