ci: switch to gitea
All checks were successful
Build container / base-build (push) Successful in 3m34s
All checks were successful
Build container / base-build (push) Successful in 3m34s
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
name: Build container
|
name: Build container
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
schedule:
|
schedule:
|
||||||
@@ -8,70 +9,43 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
base-build:
|
base-build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: job-latest
|
||||||
steps:
|
steps:
|
||||||
- &clone_repo
|
- name: Clone repo
|
||||||
name: Clone repo
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- &setup_buildx
|
- name: Setup Docker Buildx
|
||||||
name: Setup Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- &login_registry
|
- name: Login to Registry
|
||||||
name: Login to Registry
|
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: git.plabble.org
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- name: Build and push base container
|
- name: Build and push base container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./containers/base
|
context: ./containers/base
|
||||||
file: ./containers/base/Containerfile
|
file: ./containers/base/Containerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository_owner }}/base:latest
|
tags: git.plabble.org/job79/base:${{ github.ref_name }}
|
||||||
|
|
||||||
go-build:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
needs: base-build
|
|
||||||
steps:
|
|
||||||
- *clone_repo
|
|
||||||
- *setup_buildx
|
|
||||||
- *login_registry
|
|
||||||
- name: Build and push go container
|
- name: Build and push go container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./containers/go
|
context: ./containers/go
|
||||||
file: ./containers/go/Containerfile
|
file: ./containers/go/Containerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository_owner }}/go:latest
|
tags: git.plabble.org/job79/go:${{ github.ref_name }}
|
||||||
|
|
||||||
infra-build:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
needs: base-build
|
|
||||||
steps:
|
|
||||||
- *clone_repo
|
|
||||||
- *setup_buildx
|
|
||||||
- *login_registry
|
|
||||||
- name: Build and push infra container
|
- name: Build and push infra container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./containers/infra
|
context: ./containers/infra
|
||||||
file: ./containers/infra/Containerfile
|
file: ./containers/infra/Containerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository_owner }}/infra:latest
|
tags: git.plabble.org/job79/infra:${{ github.ref_name }}
|
||||||
|
|
||||||
kali-build:
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
needs: base-build
|
|
||||||
steps:
|
|
||||||
- *clone_repo
|
|
||||||
- *setup_buildx
|
|
||||||
- *login_registry
|
|
||||||
- name: Build and push kali container
|
- name: Build and push kali container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./containers/kali
|
context: ./containers/kali
|
||||||
file: ./containers/kali/Containerfile
|
file: ./containers/kali/Containerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository_owner }}/kali:latest
|
tags: git.plabble.org/job79/kali:${{ github.ref_name }}
|
||||||
Reference in New Issue
Block a user