refactor: seperate kali and fedora container workflows\
This commit is contained in:
@@ -2,8 +2,22 @@ name: Build container
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
paths:
|
||||||
|
[
|
||||||
|
"containers/fedora/**",
|
||||||
|
"containers/go/**",
|
||||||
|
"containers/infra/**",
|
||||||
|
".gitea/workflows/kali.yaml",
|
||||||
|
]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
paths:
|
||||||
|
[
|
||||||
|
"containers/fedora/**",
|
||||||
|
"containers/go/**",
|
||||||
|
"containers/infra/**",
|
||||||
|
".gitea/workflows/kali.yaml",
|
||||||
|
]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 16 * * FRI"
|
- cron: "0 16 * * FRI"
|
||||||
|
|
||||||
@@ -48,12 +62,3 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
git.plabble.org/job79/infra:${{ github.ref_name }}
|
git.plabble.org/job79/infra:${{ github.ref_name }}
|
||||||
git.plabble.org/job79/infra:latest
|
git.plabble.org/job79/infra:latest
|
||||||
- name: Build and push kali container
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: ./containers/kali
|
|
||||||
file: ./containers/kali/Containerfile
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.plabble.org/job79/kali:${{ github.ref_name }}
|
|
||||||
git.plabble.org/job79/kali:latest
|
|
||||||
34
.gitea/workflows/kali.yaml
Normal file
34
.gitea/workflows/kali.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Build container
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
paths: ["containers/kali/**", ".gitea/workflows/kali.yaml"]
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"]
|
||||||
|
paths: ["containers/kali/**", ".gitea/workflows/kali.yaml"]
|
||||||
|
schedule:
|
||||||
|
- cron: "0 16 * * FRI"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
kali-build:
|
||||||
|
runs-on: job-latest
|
||||||
|
steps:
|
||||||
|
- name: Clone repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.plabble.org
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
- name: Build and push kali container
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: ./containers/kali
|
||||||
|
file: ./containers/kali/Containerfile
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.plabble.org/job79/kali:${{ github.ref_name }}
|
||||||
|
git.plabble.org/job79/kali:latest
|
||||||
Reference in New Issue
Block a user