refactor: seperate kali and fedora container workflows\
This commit is contained in:
64
.gitea/workflows/fedora.yaml
Normal file
64
.gitea/workflows/fedora.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
name: Build container
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
[
|
||||
"containers/fedora/**",
|
||||
"containers/go/**",
|
||||
"containers/infra/**",
|
||||
".gitea/workflows/kali.yaml",
|
||||
]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
[
|
||||
"containers/fedora/**",
|
||||
"containers/go/**",
|
||||
"containers/infra/**",
|
||||
".gitea/workflows/kali.yaml",
|
||||
]
|
||||
schedule:
|
||||
- cron: "0 16 * * FRI"
|
||||
|
||||
jobs:
|
||||
fedora-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 fedora container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./containers/fedora
|
||||
file: ./containers/fedora/Containerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.plabble.org/job79/fedora:${{ github.ref_name }}
|
||||
git.plabble.org/job79/fedora:latest
|
||||
- name: Build and push go container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./containers/go
|
||||
file: ./containers/go/Containerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.plabble.org/job79/go:${{ github.ref_name }}
|
||||
git.plabble.org/job79/go:latest
|
||||
- name: Build and push infra container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./containers/infra
|
||||
file: ./containers/infra/Containerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.plabble.org/job79/infra:${{ github.ref_name }}
|
||||
git.plabble.org/job79/infra:latest
|
||||
Reference in New Issue
Block a user